[scripts] Minor updates.
This commit is contained in:
parent
d6e131e60c
commit
26e58a8f7a
1 changed files with 12 additions and 9 deletions
|
@ -31,15 +31,16 @@
|
||||||
if test -e "${_outputs}/binaries/release/kawipiko-server" ; then
|
if test -e "${_outputs}/binaries/release/kawipiko-server" ; then
|
||||||
rm -- "${_outputs}/binaries/release/kawipiko-server"
|
rm -- "${_outputs}/binaries/release/kawipiko-server"
|
||||||
fi
|
fi
|
||||||
_flags=()
|
_flags=(
|
||||||
|
-tags netgo
|
||||||
|
)
|
||||||
if test -z "${_BUILD_QUICK:-}" ; then
|
if test -z "${_BUILD_QUICK:-}" ; then
|
||||||
_flags+=(
|
_flags+=(
|
||||||
-tags netgo
|
|
||||||
-a
|
|
||||||
-gcflags 'all=-l=4'
|
-gcflags 'all=-l=4'
|
||||||
-ldflags 'all=-s'
|
-ldflags 'all=-s'
|
||||||
-buildmode exe
|
-buildmode exe
|
||||||
-trimpath
|
-trimpath
|
||||||
|
-a
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
exec -- \
|
exec -- \
|
||||||
|
@ -84,15 +85,16 @@
|
||||||
if test -e "${_outputs}/binaries/release/kawipiko-archiver" ; then
|
if test -e "${_outputs}/binaries/release/kawipiko-archiver" ; then
|
||||||
rm -- "${_outputs}/binaries/release/kawipiko-archiver"
|
rm -- "${_outputs}/binaries/release/kawipiko-archiver"
|
||||||
fi
|
fi
|
||||||
_flags=()
|
_flags=(
|
||||||
|
-tags netgo
|
||||||
|
)
|
||||||
if test -z "${_BUILD_QUICK:-}" ; then
|
if test -z "${_BUILD_QUICK:-}" ; then
|
||||||
_flags+=(
|
_flags+=(
|
||||||
-tags netgo
|
|
||||||
-a
|
|
||||||
-gcflags 'all=-l=4'
|
-gcflags 'all=-l=4'
|
||||||
-ldflags 'all=-s'
|
-ldflags 'all=-s'
|
||||||
-buildmode exe
|
-buildmode exe
|
||||||
-trimpath
|
-trimpath
|
||||||
|
-a
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
exec -- \
|
exec -- \
|
||||||
|
@ -179,15 +181,16 @@
|
||||||
if test -e "${_outputs}/binaries/release/kawipiko-server-dummy" ; then
|
if test -e "${_outputs}/binaries/release/kawipiko-server-dummy" ; then
|
||||||
rm -- "${_outputs}/binaries/release/kawipiko-server-dummy"
|
rm -- "${_outputs}/binaries/release/kawipiko-server-dummy"
|
||||||
fi
|
fi
|
||||||
_flags=()
|
_flags=(
|
||||||
|
-tags netgo
|
||||||
|
)
|
||||||
if test -z "${_BUILD_QUICK:-}" ; then
|
if test -z "${_BUILD_QUICK:-}" ; then
|
||||||
_flags+=(
|
_flags+=(
|
||||||
-tags netgo
|
|
||||||
-a
|
|
||||||
-gcflags 'all=-l=4'
|
-gcflags 'all=-l=4'
|
||||||
-ldflags 'all=-s'
|
-ldflags 'all=-s'
|
||||||
-buildmode exe
|
-buildmode exe
|
||||||
-trimpath
|
-trimpath
|
||||||
|
-a
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
exec -- \
|
exec -- \
|
||||||
|
|
Loading…
Reference in a new issue