From 6cae8b46b4f66026799390e3af691c3f8fd3c87c Mon Sep 17 00:00:00 2001 From: ata <17314593+asdxzaaaaa@user.noreply.gitee.com> Date: Fri, 10 Jul 2026 10:05:58 +0000 Subject: [PATCH] Add build.sh --- build.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 build.sh diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..0e2bdd0 --- /dev/null +++ b/build.sh @@ -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"