mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
fix: 修改win脚本
This commit is contained in:
parent
101df0a7a6
commit
62768ddc71
@ -12,7 +12,8 @@ TARGET_DIR="dist"
|
|||||||
BIN_NAME="lottery"
|
BIN_NAME="lottery"
|
||||||
|
|
||||||
create_win_bat() {
|
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
|
if [ -d "$TARGET_DIR" ]; then
|
||||||
@ -51,7 +52,7 @@ for file in "$TARGET_DIR/"*; do
|
|||||||
if [ "$(echo $file | grep '.exe')" ]; then
|
if [ "$(echo $file | grep '.exe')" ]; then
|
||||||
BATS=("start" "check" "clear" "account" "update" "login")
|
BATS=("start" "check" "clear" "account" "update" "login")
|
||||||
for item in "${BATS[@]}"; do
|
for item in "${BATS[@]}"; do
|
||||||
create_win_bat "${item}" >"$TMPDIR.d/$item.bat"
|
create_win_bat "${item}" "$TMPDIR.d/$item.bat"
|
||||||
done
|
done
|
||||||
mv "$TMPDIR.d/$BIN_NAME" "$TMPDIR.d/$BIN_NAME.exe"
|
mv "$TMPDIR.d/$BIN_NAME" "$TMPDIR.d/$BIN_NAME.exe"
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user