Add build.sh

This commit is contained in:
ata
2026-07-10 10:05:58 +00:00
committed by Gitee
parent b51c4fd257
commit 6cae8b46b4

5
build.sh Normal file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
# 构建脚本:交叉编译 Linux amd64 二进制
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-s -w" -o app
chmod +x app
echo "构建完成: ./app"