We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9a91ce commit 85565daCopy full SHA for 85565da
shell/rename.sh
@@ -0,0 +1,17 @@
1
+# pnpm build:app 之后会生成 unpackage/dist/build/app
2
+# 我要把它改名为 unpackage/dist/build/unibest_app_build
3
+
4
+# 只有存在新的 app 文件时,才执行这些操作!!否则会误删!!
5
+if test -d ./dist/build/app; then
6
+ echo '存在新打包出来的app'
7
8
+ cd ./dist/build/
9
10
+ # 1、删除旧的 rename 后的文件夹
11
+ if test -d './unibest_app_build'; then
12
+ rm -rf ./unibest_app_build
13
+ fi
14
15
+ # 2、把 app 命名为 unibest_app_build
16
+ mv ./app ./unibest_app_build
17
+fi
0 commit comments