feat: postinstall 自动生成 manifest.json

This commit is contained in:
Burt 2024-01-23 18:50:33 +08:00
parent 07706e994b
commit 97cc3ebee2
2 changed files with 7 additions and 0 deletions

6
build/postinstall.sh Normal file
View File

@ -0,0 +1,6 @@
if test -f ./src/manifest.json; then
echo ./src/manifest.json 存在
else
touch ./src/manifest.json
echo "{}" >./src/manifest.json
fi

View File

@ -12,6 +12,7 @@
"gitee": "https://gitee.com/codercup/unibest"
},
"scripts": {
"postinstall": "sh ./build/postinstall.sh",
"dev:app": "uni -p app",
"dev:app-android": "uni -p app-android",
"dev:app-ios": "uni -p app-ios",