11 lines
211 B
Batchfile
11 lines
211 B
Batchfile
@echo off
|
|
cd /d %~dp0
|
|
go build -o ../bin/client.exe main.go
|
|
if %errorlevel% equ 0 (
|
|
echo 编译成功!可执行文件位于: ..\bin\client.exe
|
|
) else (
|
|
echo 编译失败!
|
|
exit /b %errorlevel%
|
|
)
|
|
|