Skip to content

Commit 85565da

Browse files
committed
feat: rename.sh
1 parent b9a91ce commit 85565da

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

shell/rename.sh

+17
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)