Browse Source

Build: comply with upstream (#283)

pull/2757/head
Loyalsoldier 4 years ago committed by GitHub
parent
commit
97dac8cd2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      release/user-package.sh

18
release/user-package.sh

@ -56,7 +56,11 @@ build_dat() {
copyconf() {
echo ">>> Copying config..."
cd ./release/config
tar c --exclude "*.dat" --exclude "systemd/**" . | tar x -C "$TMP"
if [[ $GOOS == "linux" ]]; then
tar c --exclude "*.dat" . | tar x -C "$TMP"
else
tar c --exclude "*.dat" --exclude "systemd/**" . | tar x -C "$TMP"
fi
}
packzip() {
@ -94,20 +98,14 @@ PKGSUFFIX=
for arg in "$@"; do
case $arg in
arm*)
GOARCH=$arg
;;
mips*)
386 | arm* | mips* | ppc64* | riscv64 | s390x)
GOARCH=$arg
;;
386)
GOARCH=386
;;
windows)
GOOS=windows
GOOS=$arg
EXESUFFIX=.exe
;;
darwin)
darwin | dragonfly | freebsd | openbsd)
GOOS=$arg
;;
nodat)

Loading…
Cancel
Save