|
@@ -56,7 +56,11 @@ build_dat() {
|
|
|
copyconf() {
|
|
copyconf() {
|
|
|
echo ">>> Copying config..."
|
|
echo ">>> Copying config..."
|
|
|
cd ./release/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() {
|
|
packzip() {
|
|
@@ -94,20 +98,14 @@ PKGSUFFIX=
|
|
|
|
|
|
|
|
for arg in "$@"; do
|
|
for arg in "$@"; do
|
|
|
case $arg in
|
|
case $arg in
|
|
|
- arm*)
|
|
|
|
|
- GOARCH=$arg
|
|
|
|
|
- ;;
|
|
|
|
|
- mips*)
|
|
|
|
|
|
|
+ 386 | arm* | mips* | ppc64* | riscv64 | s390x)
|
|
|
GOARCH=$arg
|
|
GOARCH=$arg
|
|
|
;;
|
|
;;
|
|
|
- 386)
|
|
|
|
|
- GOARCH=386
|
|
|
|
|
- ;;
|
|
|
|
|
windows)
|
|
windows)
|
|
|
- GOOS=windows
|
|
|
|
|
|
|
+ GOOS=$arg
|
|
|
EXESUFFIX=.exe
|
|
EXESUFFIX=.exe
|
|
|
;;
|
|
;;
|
|
|
- darwin)
|
|
|
|
|
|
|
+ darwin | dragonfly | freebsd | openbsd)
|
|
|
GOOS=$arg
|
|
GOOS=$arg
|
|
|
;;
|
|
;;
|
|
|
nodat)
|
|
nodat)
|