mirror of
https://github.com/gmsec/gmsec.git
synced 2025-09-26 20:01:21 +08:00
update: github自用国内代理
This commit is contained in:
@@ -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}
|
||||||
|
@@ -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}
|
||||||
|
@@ -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}
|
||||||
|
@@ -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}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user