From 62768ddc71a5f573b6ad09d1dc60c266ba2417d0 Mon Sep 17 00:00:00 2001 From: shanmite Date: Wed, 30 Aug 2023 16:17:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9win=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/build/pkg.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/script/build/pkg.sh b/script/build/pkg.sh index 6be4f08..6a9da41 100755 --- a/script/build/pkg.sh +++ b/script/build/pkg.sh @@ -12,7 +12,8 @@ TARGET_DIR="dist" BIN_NAME="lottery" create_win_bat() { - echo "@echo off && lottery $1 && pause" + echo "set NODE_SKIP_PLATFORM_CHECK=1" >>$2 + echo "lottery $1 & pause" >>$2 } if [ -d "$TARGET_DIR" ]; then @@ -51,7 +52,7 @@ for file in "$TARGET_DIR/"*; do if [ "$(echo $file | grep '.exe')" ]; then BATS=("start" "check" "clear" "account" "update" "login") for item in "${BATS[@]}"; do - create_win_bat "${item}" >"$TMPDIR.d/$item.bat" + create_win_bat "${item}" "$TMPDIR.d/$item.bat" done mv "$TMPDIR.d/$BIN_NAME" "$TMPDIR.d/$BIN_NAME.exe" else