[scripts] Update Go build flags for release builds.
This commit is contained in:
parent
9740a9866d
commit
c6d610eaba
1 changed files with 14 additions and 5 deletions
|
@ -50,8 +50,11 @@
|
||||||
build \
|
build \
|
||||||
-mod readonly \
|
-mod readonly \
|
||||||
-tags netgo \
|
-tags netgo \
|
||||||
-ldflags 'all=-s -extld=gcc -extldflags=-static' \
|
-a \
|
||||||
-gcflags 'all=-l=4' \
|
-gcflags 'all=-l=4' \
|
||||||
|
-ldflags 'all=-s' \
|
||||||
|
-buildmode exe \
|
||||||
|
-trimpath \
|
||||||
-o "${_outputs}/binaries/release/kawipiko-server" \
|
-o "${_outputs}/binaries/release/kawipiko-server" \
|
||||||
-- ./cmd/server.go \
|
-- ./cmd/server.go \
|
||||||
#
|
#
|
||||||
|
@ -129,9 +132,12 @@
|
||||||
exec -- "${ZRUN[@]}" ':: go / tool' \
|
exec -- "${ZRUN[@]}" ':: go / tool' \
|
||||||
build \
|
build \
|
||||||
-mod readonly \
|
-mod readonly \
|
||||||
-tags 'netgo brotli' \
|
-tags netgo \
|
||||||
-ldflags 'all=-s -extld=gcc -extldflags=-static' \
|
-a \
|
||||||
-gcflags 'all=-l=4' \
|
-gcflags 'all=-l=4' \
|
||||||
|
-ldflags 'all=-s' \
|
||||||
|
-buildmode exe \
|
||||||
|
-trimpath \
|
||||||
-o "${_outputs}/binaries/release/kawipiko-archiver" \
|
-o "${_outputs}/binaries/release/kawipiko-archiver" \
|
||||||
-- ./cmd/archiver.go \
|
-- ./cmd/archiver.go \
|
||||||
#
|
#
|
||||||
|
@ -180,9 +186,12 @@
|
||||||
exec -- "${ZRUN[@]}" ':: go / tool' \
|
exec -- "${ZRUN[@]}" ':: go / tool' \
|
||||||
build \
|
build \
|
||||||
-mod readonly \
|
-mod readonly \
|
||||||
-tags 'netgo brotli' \
|
-tags netgo \
|
||||||
-ldflags 'all=-s -extld=gcc -extldflags=-static' \
|
-a \
|
||||||
-gcflags 'all=-l=4' \
|
-gcflags 'all=-l=4' \
|
||||||
|
-ldflags 'all=-s' \
|
||||||
|
-buildmode exe \
|
||||||
|
-trimpath \
|
||||||
-o "${_outputs}/binaries/release/kawipiko" \
|
-o "${_outputs}/binaries/release/kawipiko" \
|
||||||
-- ./cmd/wrapper.go \
|
-- ./cmd/wrapper.go \
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue