From b4c7ab9f2c58802ea449007acd4b5b3949b852d2 Mon Sep 17 00:00:00 2001 From: lzh <1625167628@qq.com> Date: Fri, 11 Jul 2025 15:42:00 +0800 Subject: [PATCH] add build params --- build.bat | 4 ++-- build.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.bat b/build.bat index ce358bf..b005509 100644 --- a/build.bat +++ b/build.bat @@ -1,5 +1,5 @@ SET CGO_ENABLED=0 SET GOOS=linux SET GOARCH=amd64 -@REM go build -ldflags="-s -w" -tags="slim" -o go_process_manager cmd/go_process_manager/main.go -go build -ldflags="-s -w" -o go_process_manager cmd/go_process_manager/main.go \ No newline at end of file +@REM go build -ldflags="-s -w" -tags="slim" -o go_process_manager -trimpath cmd/go_process_manager/main.go +go build -ldflags="-s -w" -o go_process_manager -trimpath cmd/go_process_manager/main.go \ No newline at end of file diff --git a/build.sh b/build.sh index a9917c9..dbbbba5 100644 --- a/build.sh +++ b/build.sh @@ -1,5 +1,5 @@ export CGO_ENABLED=0 export GOOS=linux export GOARCH=amd64 -# go build -ldflags="-s -w" -tags="slim" -o go_process_manager cmd/go_process_manager/main.go -go build -ldflags="-s -w" -o go_process_manager cmd/go_process_manager/main.go \ No newline at end of file +# go build -ldflags="-s -w" -tags="slim" -o go_process_manager -trimpath cmd/go_process_manager/main.go +go build -ldflags="-s -w" -o go_process_manager -trimpath cmd/go_process_manager/main.go \ No newline at end of file