From 174fe4d7a274a1e5810fbfba228f840ba69a11b3 Mon Sep 17 00:00:00 2001 From: esrrhs Date: Mon, 19 Apr 2021 22:22:45 +0800 Subject: [PATCH 1/4] add --- pack.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/pack.sh b/pack.sh index 710a5d5..e88b1fc 100755 --- a/pack.sh +++ b/pack.sh @@ -12,14 +12,12 @@ freebsd/amd64 freebsd/arm freebsd/arm64 illumos/amd64 -js/wasm linux/386 linux/amd64 linux/arm linux/arm64 linux/mips linux/mips64 -linux/mips64le linux/mipsle linux/ppc64 linux/ppc64le From d04d249538576890290bfd0c019aafb65673373c Mon Sep 17 00:00:00 2001 From: esrrhs Date: Tue, 20 Apr 2021 11:06:00 +0800 Subject: [PATCH 2/4] add --- pack.sh | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/pack.sh b/pack.sh index e88b1fc..e92c585 100755 --- a/pack.sh +++ b/pack.sh @@ -3,7 +3,12 @@ NAME="pingtunnel" rm *.zip -f +#go tool dist list build_list="aix/ppc64 +android/386 +android/amd64 +android/arm +android/arm64 darwin/386 darwin/amd64 dragonfly/amd64 @@ -18,6 +23,7 @@ linux/arm linux/arm64 linux/mips linux/mips64 +linux/mips64le linux/mipsle linux/ppc64 linux/ppc64le @@ -39,6 +45,10 @@ windows/386 windows/amd64 windows/arm" +rm pack -rf +rm pack.zip -f +mkdir pack + for line in $build_list; do os=$(echo "$line" | awk -F"/" '{print $1}') arch=$(echo "$line" | awk -F"/" '{print $2}') @@ -51,13 +61,28 @@ for line in $build_list; do echo "os="$os" arch="$arch" build fail" exit 1 fi - zip ${NAME}_"${os}"_"${arch}"".zip" $NAME - if [ $? -ne 0 ]; then - echo "os="$os" arch="$arch" zip fail" - exit 1 + if [ $os = "windows" ]; then + zip ${NAME}_"${os}"_"${arch}"".zip" $NAME".exe" + if [ $? -ne 0 ]; then + echo "os="$os" arch="$arch" zip fail" + exit 1 + fi + mv ${NAME}_"${os}"_"${arch}"".zip" pack/ + rm $NAME".exe" -f + else + zip ${NAME}_"${os}"_"${arch}"".zip" $NAME + if [ $? -ne 0 ]; then + echo "os="$os" arch="$arch" zip fail" + exit 1 + fi + mv ${NAME}_"${os}"_"${arch}"".zip" pack/ + rm $NAME -f fi echo "os="$os" arch="$arch" done build" done +zip pack.zip pack/ -r + echo "all done" + From dd70313cf5cbc7026ab25e43238b2e278922dad1 Mon Sep 17 00:00:00 2001 From: zhao xin Date: Tue, 20 Apr 2021 13:23:00 +0800 Subject: [PATCH 3/4] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index f075389..3006ff4 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@ [](https://github.com/esrrhs/pingtunnel/releases) [](https://hub.docker.com/repository/docker/esrrhs/pingtunnel) [](https://github.com/esrrhs/pingtunnel/actions) -[![Codacy Badge](https://api.codacy.com/project/badge/Grade/a200bca59d1b4ca7a9c2cdb564508b47)](https://www.codacy.com/manual/esrrhs/pingtunnel?utm_source=github.com&utm_medium=referral&utm_content=esrrhs/pingtunnel&utm_campaign=Badge_Grade) pingtunnel 是把 tcp/udp/sock5 流量伪装成 icmp 流量进行转发的工具 From 2eab964f13747070ea600ff2c2847b0362c0b6f5 Mon Sep 17 00:00:00 2001 From: zhao xin Date: Tue, 20 Apr 2021 13:23:14 +0800 Subject: [PATCH 4/4] Update README_EN.md --- README_EN.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README_EN.md b/README_EN.md index 9516a54..f985a07 100644 --- a/README_EN.md +++ b/README_EN.md @@ -7,7 +7,6 @@ [](https://github.com/esrrhs/pingtunnel/releases) [](https://hub.docker.com/repository/docker/esrrhs/pingtunnel) [](https://github.com/esrrhs/pingtunnel/actions) -[![Codacy Badge](https://api.codacy.com/project/badge/Grade/a200bca59d1b4ca7a9c2cdb564508b47)](https://www.codacy.com/manual/esrrhs/pingtunnel?utm_source=github.com&utm_medium=referral&utm_content=esrrhs/pingtunnel&utm_campaign=Badge_Grade) Pingtunnel is a tool that advertises tcp/udp/sock5 traffic as icmp traffic for forwarding.