|
@@ -4,7 +4,7 @@
|
|
|
#
|
|
#
|
|
|
# Supported architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
|
|
# Supported architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
|
|
|
#
|
|
#
|
|
|
-# Copyright (C) 2020 - 2021 Teddysun <[email protected]>
|
|
|
|
|
|
|
+# Copyright (C) 2020 - 2022 Teddysun <[email protected]>
|
|
|
#
|
|
#
|
|
|
# Reference URL:
|
|
# Reference URL:
|
|
|
# https://github.com/v2fly/v2ray-core.git
|
|
# https://github.com/v2fly/v2ray-core.git
|
|
@@ -29,17 +29,20 @@ ARMS=( 6 7 )
|
|
|
for ARCH in ${ARCHS[@]}; do
|
|
for ARCH in ${ARCHS[@]}; do
|
|
|
if [ "${ARCH}" = "arm" ]; then
|
|
if [ "${ARCH}" = "arm" ]; then
|
|
|
for V in ${ARMS[@]}; do
|
|
for V in ${ARMS[@]}; do
|
|
|
- echo "Building v2ray_linux_${ARCH}${V} and v2ctl_linux_${ARCH}${V}"
|
|
|
|
|
|
|
+ # echo "Building v2ray_linux_${ARCH}${V} and v2ctl_linux_${ARCH}${V}"
|
|
|
|
|
+ echo "Building v2ray_linux_${ARCH}${V}"
|
|
|
env CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} GOARM=${V} go build -v -trimpath -ldflags "${LDFLAGS}" -o ${cur_dir}/v2ray_linux_${ARCH}${V} ./main
|
|
env CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} GOARM=${V} go build -v -trimpath -ldflags "${LDFLAGS}" -o ${cur_dir}/v2ray_linux_${ARCH}${V} ./main
|
|
|
- env CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} GOARM=${V} go build -v -trimpath -ldflags "${LDFLAGS}" -tags confonly -o ${cur_dir}/v2ctl_linux_${ARCH}${V} ./infra/control/main
|
|
|
|
|
|
|
+ # env CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} GOARM=${V} go build -v -trimpath -ldflags "${LDFLAGS}" -tags confonly -o ${cur_dir}/v2ctl_linux_${ARCH}${V} ./infra/control/main
|
|
|
done
|
|
done
|
|
|
else
|
|
else
|
|
|
- echo "Building v2ray_linux_${ARCH} and v2ctl_linux_${ARCH}"
|
|
|
|
|
|
|
+ # echo "Building v2ray_linux_${ARCH} and v2ctl_linux_${ARCH}"
|
|
|
|
|
+ echo "Building v2ray_linux_${ARCH}"
|
|
|
env CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} go build -v -trimpath -ldflags "${LDFLAGS}" -o ${cur_dir}/v2ray_linux_${ARCH} ./main
|
|
env CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} go build -v -trimpath -ldflags "${LDFLAGS}" -o ${cur_dir}/v2ray_linux_${ARCH} ./main
|
|
|
- env CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} go build -v -trimpath -ldflags "${LDFLAGS}" -tags confonly -o ${cur_dir}/v2ctl_linux_${ARCH} ./infra/control/main
|
|
|
|
|
|
|
+ # env CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} go build -v -trimpath -ldflags "${LDFLAGS}" -tags confonly -o ${cur_dir}/v2ctl_linux_${ARCH} ./infra/control/main
|
|
|
fi
|
|
fi
|
|
|
done
|
|
done
|
|
|
|
|
|
|
|
-chmod +x ${cur_dir}/v2ray_linux_* ${cur_dir}/v2ctl_linux_*
|
|
|
|
|
|
|
+# chmod +x ${cur_dir}/v2ray_linux_* ${cur_dir}/v2ctl_linux_*
|
|
|
|
|
+chmod +x ${cur_dir}/v2ray_linux_*
|
|
|
# clean up
|
|
# clean up
|
|
|
cd ${cur_dir} && rm -fr v2ray-core
|
|
cd ${cur_dir} && rm -fr v2ray-core
|