From 029b7a4277555863d82b3abbea2b106f781d7036 Mon Sep 17 00:00:00 2001 From: RickoNoNo3 Date: Thu, 9 Nov 2023 23:10:09 +0800 Subject: [PATCH] build.ps1/startup.cmd --- build.ps1 | 8 ++++---- startup.cmd | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/build.ps1 b/build.ps1 index d297336..4dfe31f 100644 --- a/build.ps1 +++ b/build.ps1 @@ -1,5 +1,5 @@ param ( - $version + [string]$version ) if ([string]::IsNullOrEmpty($version)) { @@ -19,11 +19,11 @@ function Build { SET GOOS=$GOOS if ($GOOS -eq 'windows') { go build -o ./build/$Name/tyut-net-connector.exe . - cp ./startup.cmd ./build/$Name/ + cp ./startup.cmd ./build/$Name/tyut-net-connector-startup.cmd } else { go build -o ./build/$Name/tyut-net-connector . - cp ./startup.sh ./build/$Name/ - wsl -e chmod +x ./build/$Name/startup.sh + cp ./startup.sh ./build/$Name/tyut-net-connector-startup.sh + wsl -e chmod +x ./build/$Name/tyut-net-connector-startup.sh } cp ./README.md ./build/$Name/ cd ./build diff --git a/startup.cmd b/startup.cmd index 94ae0bb..405d434 100644 --- a/startup.cmd +++ b/startup.cmd @@ -6,8 +6,6 @@ SET silent=0 if %silent% EQU 1 ( start tyut-net-connector.exe -u %username% -p %password% -silent - echo 已在后台启动程序,现在请按任意键关闭本窗口 - pause >nul goto END ) tyut-net-connector.exe -u %username% -p %password%