mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
Build: comply with upstream (#283)
This commit is contained in:
parent
454528353d
commit
97dac8cd2f
@ -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*)
|
||||
386 | arm* | mips* | ppc64* | riscv64 | s390x)
|
||||
GOARCH=$arg
|
||||
;;
|
||||
mips*)
|
||||
GOARCH=$arg
|
||||
;;
|
||||
386)
|
||||
GOARCH=386
|
||||
;;
|
||||
windows)
|
||||
GOOS=windows
|
||||
GOOS=$arg
|
||||
EXESUFFIX=.exe
|
||||
;;
|
||||
darwin)
|
||||
darwin | dragonfly | freebsd | openbsd)
|
||||
GOOS=$arg
|
||||
;;
|
||||
nodat)
|
||||
|
Loading…
Reference in New Issue
Block a user