update: github自用国内代理

This commit is contained in:
Dylan
2023-07-06 18:44:57 +08:00
parent 9dd7497c89
commit 15942730fe
4 changed files with 12 additions and 12 deletions

View File

@@ -2,12 +2,12 @@
version="3.11.4" version="3.11.4"
ABROAD_URL="https://github.com/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
INTERNAL_URL="https://github.com.cnpmjs.org/protocolbuffers/protobuf/releases/download/v${version}/protoc-${version}-linux-x86_64.zip" PROTOBUF_RELEASES_URL="https://github.com/protocolbuffers/protobuf/releases/download/v${version}/protoc-${version}-linux-x86_64.zip"
# su - xxj -c "qwer" # su - xxj -c "qwer"
# download # 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} mkdir protobuf-${version}
unzip -d ./protobuf-${version} protobuf.tar.zip unzip -d ./protobuf-${version} protobuf.tar.zip
cd protobuf-${version} cd protobuf-${version}

View File

@@ -2,12 +2,12 @@
version="3.11.4" version="3.11.4"
ABROAD_URL="https://github.com/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
INTERNAL_URL="https://github.com.cnpmjs.org/protocolbuffers/protobuf/releases/download/v${version}/protoc-${version}-osx-x86_64.zip" PROTOBUF_RELEASES_URL="https://github.com/protocolbuffers/protobuf/releases/download/v${version}/protoc-${version}-osx-x86_64.zip"
# su - xxj -c "qwer" # su - xxj -c "qwer"
# download # 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} mkdir protobuf-${version}
tar -xvf protobuf.tar.gz -C ./protobuf-${version} tar -xvf protobuf.tar.gz -C ./protobuf-${version}
cd protobuf-${version} cd protobuf-${version}

View File

@@ -2,12 +2,12 @@
version="3.11.4" version="3.11.4"
ABROAD_URL="https://github.com/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
INTERNAL_URL="https://github.com.cnpmjs.org/protocolbuffers/protobuf/releases/download/v${version}/protoc-${version}-win64.zip" PROTOBUF_RELEASES_URL="https://github.com/protocolbuffers/protobuf/releases/download/v${version}/protoc-${version}-win64.zip"
# su - xxj -c "qwer" # su - xxj -c "qwer"
# download # 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} mkdir protobuf-${version}
unzip -d ./protobuf-${version}/ protobuf.tar.gz unzip -d ./protobuf-${version}/ protobuf.tar.gz
cd protobuf-${version} cd protobuf-${version}

View File

@@ -2,12 +2,12 @@
version="3.11.4" version="3.11.4"
ABROAD_URL="https://github.com/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
INTERNAL_URL="https://github.com.cnpmjs.org/protocolbuffers/protobuf/releases/download/v${version}/protobuf-all-${version}.tar.gz" PROTOBUF_RELEASES_URL="https://github.com/protocolbuffers/protobuf/releases/download/v${version}/protobuf-all-${version}.tar.gz"
# su - xxj -c "qwer" # su - xxj -c "qwer"
# download # 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 tar -xvf protobuf.tar.gz
cd protobuf-${version} cd protobuf-${version}