Skip to content

Commit

Permalink
build.ps1/startup.cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
RickoNoNo3 committed Nov 9, 2023
1 parent aa03edd commit 029b7a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
param (
$version
[string]$version
)

if ([string]::IsNullOrEmpty($version)) {
Expand All @@ -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
Expand Down
2 changes: 0 additions & 2 deletions startup.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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%
Expand Down

0 comments on commit 029b7a4

Please sign in to comment.