feat: postinstall 自动生成 manifest.json
This commit is contained in:
parent
07706e994b
commit
97cc3ebee2
6
build/postinstall.sh
Normal file
6
build/postinstall.sh
Normal 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
|
@ -12,6 +12,7 @@
|
|||||||
"gitee": "https://gitee.com/codercup/unibest"
|
"gitee": "https://gitee.com/codercup/unibest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"postinstall": "sh ./build/postinstall.sh",
|
||||||
"dev:app": "uni -p app",
|
"dev:app": "uni -p app",
|
||||||
"dev:app-android": "uni -p app-android",
|
"dev:app-android": "uni -p app-android",
|
||||||
"dev:app-ios": "uni -p app-ios",
|
"dev:app-ios": "uni -p app-ios",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user