diff --git a/build/postinstall.sh b/build/postinstall.sh new file mode 100644 index 0000000..ef514ab --- /dev/null +++ b/build/postinstall.sh @@ -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 diff --git a/package.json b/package.json index c313e45..8ef9fe7 100644 --- a/package.json +++ b/package.json @@ -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",