Browse Source

fix: publish scripts

luqianyu 1 year ago
parent
commit
2570a6e44a
2 changed files with 22 additions and 2 deletions
  1. 20 0
      scripts/publish-finchat.sh
  2. 2 2
      scripts/publish-plugin-net-disk.sh

+ 20 - 0
scripts/publish-finchat.sh

@@ -0,0 +1,20 @@
+#!/bin/bash
+cd ../
+rm -rf FinChat
+git clone https://git.finogeeks.club/finoapp-desktop/FinChat.git
+cd FinChat
+yarn 
+yarn build:inner
+yarn build:test
+yarn build:public
+cd ../
+rm -rf static/inner
+mkdir -p static/inner
+unzip -o FinChat/dist/inner.zip -d static/inner
+rm -rf static/test
+mkdir -p static/test
+unzip -o FinChat/dist/test.zip -d static/test
+rm -rf static/public
+mkdir -p static/public
+unzip -o FinChat/dist/public.zip -d static/public
+rm -rf FinChat

+ 2 - 2
scripts/publish-plugin-net-disk.sh

@@ -9,5 +9,5 @@ cd dist && zip -q -r dist.zip *
 cd ../../
 rm -rf static/plugin-net-disk
 mkdir -p static/plugin-net-disk
-unzip -o plugin-net-disk/dist/dist.zip -d static/plugin-net-disk
-rm -rf plugin-net-disk
+unzip -o net-disk/dist/dist.zip -d static/plugin-net-disk
+rm -rf net-disk