Initial qiwei secondary development handoff
This commit is contained in:
36
build_helper.bat
Normal file
36
build_helper.bat
Normal file
@@ -0,0 +1,36 @@
|
||||
@echo off
|
||||
|
||||
REM 删除已存在的helper_32bit.exe文件
|
||||
echo Removing existing helper.exe...
|
||||
if exist build\bin\helper.exe del /F build\bin\helper.exe
|
||||
|
||||
REM Build 32-bit helper application as GUI (no console window)
|
||||
echo Building 32-bit helper application as GUI...
|
||||
set "GOARCH=386"
|
||||
cd helper && go build -ldflags="-H windowsgui -s -w" -o ..\build\bin\helper.exe . && cd ..
|
||||
|
||||
REM Check build success
|
||||
if %ERRORLEVEL% EQU 0 (
|
||||
echo Helper build successful!
|
||||
) else (
|
||||
echo Helper build failed!
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
REM Ensure build directory exists
|
||||
if not exist build\bin mkdir build\bin
|
||||
|
||||
REM Copy DLL files if they exist
|
||||
if exist Helper_4.1.33.6009.dll (
|
||||
copy /Y Helper_4.1.33.6009.dll build\bin\ >nul
|
||||
echo DLL files copied to build directory
|
||||
)
|
||||
|
||||
if exist Loader_4.1.33.6009.dll (
|
||||
copy /Y Loader_4.1.33.6009.dll build\bin\ >nul
|
||||
echo DLL files copied to build directory
|
||||
)
|
||||
|
||||
echo All operations completed!
|
||||
pause
|
||||
Reference in New Issue
Block a user