Files
mining-client/cmd/build.windows.bat
2026-01-04 13:57:08 +08:00

16 lines
317 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
:: 设置目标平台为 Windows 和 amd6464位
set GOOS=windows
set GOARCH=amd64
cd /d %~dp0
go build -o ../bin/client_windows.exe main.go
if %errorlevel% equ 0 (
echo 编译成功!可执行文件位于: ..\bin\client_windows.exe
) else (
echo 编译失败!
exit /b %errorlevel%
)