diff --git a/proto_install_linux.sh b/proto_install_linux.sh index ca51c40..f8b8740 100644 --- a/proto_install_linux.sh +++ b/proto_install_linux.sh @@ -2,12 +2,12 @@ version="3.11.4" -ABROAD_URL="https://github.com/protocolbuffers/protobuf/releases/download/v${version}/protoc-${version}-linux-x86_64.zip" -INTERNAL_URL="https://github.com.cnpmjs.org/protocolbuffers/protobuf/releases/download/v${version}/protoc-${version}-linux-x86_64.zip" +export https_proxy=http://git.iizone.com.cn:32222 http_proxy=http://git.iizone.com.cn:32222 all_proxy=socks5://git.iizone.com.cn:32222 +PROTOBUF_RELEASES_URL="https://github.com/protocolbuffers/protobuf/releases/download/v${version}/protoc-${version}-linux-x86_64.zip" # su - xxj -c "qwer" # download -curl -fLo protobuf.tar.zip ${ABROAD_URL} || curl -fLo protobuf.tar.zip ${INTERNAL_URL} +curl -fLo protobuf.tar.zip ${PROTOBUF_RELEASES_URL} mkdir protobuf-${version} unzip -d ./protobuf-${version} protobuf.tar.zip cd protobuf-${version} diff --git a/proto_install_mac.sh b/proto_install_mac.sh index 77a762d..6772f26 100644 --- a/proto_install_mac.sh +++ b/proto_install_mac.sh @@ -2,12 +2,12 @@ version="3.11.4" -ABROAD_URL="https://github.com/protocolbuffers/protobuf/releases/download/v${version}/protoc-${version}-osx-x86_64.zip" -INTERNAL_URL="https://github.com.cnpmjs.org/protocolbuffers/protobuf/releases/download/v${version}/protoc-${version}-osx-x86_64.zip" +export https_proxy=http://git.iizone.com.cn:32222 http_proxy=http://git.iizone.com.cn:32222 all_proxy=socks5://git.iizone.com.cn:32222 +PROTOBUF_RELEASES_URL="https://github.com/protocolbuffers/protobuf/releases/download/v${version}/protoc-${version}-osx-x86_64.zip" # su - xxj -c "qwer" # download -curl -fLo protobuf.tar.gz ${ABROAD_URL} || curl -fLo protobuf.tar.zip ${INTERNAL_URL} +curl -fLo protobuf.tar.zip ${PROTOBUF_RELEASES_URL} mkdir protobuf-${version} tar -xvf protobuf.tar.gz -C ./protobuf-${version} cd protobuf-${version} diff --git a/proto_install_windows_git_bash.sh b/proto_install_windows_git_bash.sh index 120e5c7..f59a461 100644 --- a/proto_install_windows_git_bash.sh +++ b/proto_install_windows_git_bash.sh @@ -2,12 +2,12 @@ version="3.11.4" -ABROAD_URL="https://github.com/protocolbuffers/protobuf/releases/download/v${version}/protoc-${version}-win64.zip" -INTERNAL_URL="https://github.com.cnpmjs.org/protocolbuffers/protobuf/releases/download/v${version}/protoc-${version}-win64.zip" +export https_proxy=http://git.iizone.com.cn:32222 http_proxy=http://git.iizone.com.cn:32222 all_proxy=socks5://git.iizone.com.cn:32222 +PROTOBUF_RELEASES_URL="https://github.com/protocolbuffers/protobuf/releases/download/v${version}/protoc-${version}-win64.zip" # su - xxj -c "qwer" # download -curl -fLo protobuf.tar.gz ${ABROAD_URL} || curl -fLo protobuf.tar.zip ${INTERNAL_URL} +curl -fLo protobuf.tar.zip ${PROTOBUF_RELEASES_URL} mkdir protobuf-${version} unzip -d ./protobuf-${version}/ protobuf.tar.gz cd protobuf-${version} diff --git a/proto_source_install.sh b/proto_source_install.sh index 7cd7d76..5a530a5 100755 --- a/proto_source_install.sh +++ b/proto_source_install.sh @@ -2,12 +2,12 @@ version="3.11.4" -ABROAD_URL="https://github.com/protocolbuffers/protobuf/releases/download/v${version}/protobuf-all-${version}.tar.gz" -INTERNAL_URL="https://github.com.cnpmjs.org/protocolbuffers/protobuf/releases/download/v${version}/protobuf-all-${version}.tar.gz" +export https_proxy=http://git.iizone.com.cn:32222 http_proxy=http://git.iizone.com.cn:32222 all_proxy=socks5://git.iizone.com.cn:32222 +PROTOBUF_RELEASES_URL="https://github.com/protocolbuffers/protobuf/releases/download/v${version}/protobuf-all-${version}.tar.gz" # su - xxj -c "qwer" # download -curl -fLo protobuf.tar.gz ${ABROAD_URL} || curl -fLo protobuf.tar.zip ${INTERNAL_URL} +curl -fLo protobuf.tar.zip ${PROTOBUF_RELEASES_URL} tar -xvf protobuf.tar.gz cd protobuf-${version}