Files
SunnyNet/BuildLibrary/Build.bat
Qin tian 226a333e2c 2025-07-26
2025-07-26
2025-07-26 16:00:33 +08:00

10 lines
279 B
Batchfile

@echo off
set CGO_ENABLED=1
set GOOS=windows
set GOARCH=386
set tmpPath=%~dp0
cd %tmpPath:~0,1%:
for %%I in ("%tmpPath%..\") do set "parentPath=%%~fI"
cd %parentPath%
go build -trimpath -buildmode=c-shared -ldflags "-s -w" -o "%tmpPath%Library\windows\x32\SunnyNet.dll"
@echo on