From 97cc3ebee2e0d31dd1d4716ed639cd3675dff698 Mon Sep 17 00:00:00 2001 From: Burt <1020103647@qq.com> Date: Tue, 23 Jan 2024 18:50:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20postinstall=20=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E7=94=9F=E6=88=90=20manifest.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/postinstall.sh | 6 ++++++ package.json | 1 + 2 files changed, 7 insertions(+) create mode 100644 build/postinstall.sh 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",