Add pie build mode to all binary builds

This commit is contained in:
Shelikhoo authored and Xiaokang Wang (Shelikhoo) committed 2024-05-07 04:11:16 +01:00
1 parent 1c103e6179
commit 8191faa6e0
1 file changed
+10
+10
View File
@@ -131,6 +131,16 @@ jobs:
- name: Build V2Ray
run: |
mkdir -p build_assets
EXTRA_ARG=""
case "$GOOS-$GOARCH" in
"linux-386")
;&
"linux-amd64")
;&
"linux-arm64")
EXTRA_ARG=EXTRA_ARG+"-buildmode=pie"
;;
esac
go build -v -o build_assets/v2ray -trimpath -ldflags "-s -w -buildid=" ./main
- name: Rename Windows V2Ray