Skip to content

Commit

Permalink
Build: comply with upstream (v2ray#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
Loyalsoldier committed Oct 8, 2020
1 parent 4545283 commit 97dac8c
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions release/user-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 97dac8c

Please sign in to comment.