add launcher

This commit is contained in:
2026-09-17 15:10:46 +08:00
parent 1962d3f8a7
commit a2b0bba05f
10 changed files with 778 additions and 3 deletions

21
launcher/build.bat Normal file
View File

@@ -0,0 +1,21 @@
@echo off
setlocal
where go.exe >nul 2>&1
if errorlevel 1 (
echo Go was not found in PATH.
exit /b 1
)
pushd "%~dp0" || exit /b 1
go build -trimpath -ldflags "-s -w -H=windowsgui" -o start.exe start.go
set "BUILD_EXIT=%errorlevel%"
popd
if not "%BUILD_EXIT%"=="0" (
echo Failed to build start.exe.
exit /b %BUILD_EXIT%
)
echo Built "%~dp0start.exe" successfully.
exit /b 0