aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeanna Garcia <deannagarcia@google.com>2022-09-16 20:13:17 +0000
committerDeanna Garcia <deannagarcia@google.com>2022-09-16 20:16:02 +0000
commit0661cc41dc65545938515f7e3944e1b4ea4618e5 (patch)
tree3127f1a654336fcc4d24d9f0662ec6f98680b234
parent9e8d5f10977397411dbe9bba9cb0c60c2c427b53 (diff)
downloadprotobuf-0661cc41dc65545938515f7e3944e1b4ea4618e5.tar.gz
Use local artifacts
-rwxr-xr-xprotoc-artifacts/build-zip.sh15
1 files changed, 5 insertions, 10 deletions
diff --git a/protoc-artifacts/build-zip.sh b/protoc-artifacts/build-zip.sh
index 7d1923e6e..d9979c4bc 100755
--- a/protoc-artifacts/build-zip.sh
+++ b/protoc-artifacts/build-zip.sh
@@ -10,10 +10,10 @@ Example:
$ $0 protoc 3.0.0
$ $0 protoc-gen-javalite 3.0.0
-This script will download pre-built protoc or protoc plugin binaries from maven
-repository and create .zip packages suitable to be included in the github
-release page. If the target is protoc, well-known type .proto files will also be
-included. Each invocation will create 8 zip packages:
+This script will create .zip packages suitable to be included in the github
+release page. It requires all protoc executables to be present in the
+protoc-artifacts/ directory. If the target is protoc, well-known type .proto
+files will also be included. Each invocation will create 8 zip packages:
dist/<TARGET>-<VERSION_NUMBER>-win32.zip
dist/<TARGET>-<VERSION_NUMBER>-win64.zip
dist/<TARGET>-<VERSION_NUMBER>-osx-x86_64.zip
@@ -98,12 +98,7 @@ for((i=0;i<${#FILE_NAMES[@]};i+=2));do
BINARY="$TARGET"
fi
BINARY_NAME=${FILE_NAMES[$(($i+1))]}
- BINARY_URL=https://repo1.maven.org/maven2/com/google/protobuf/$TARGET/${VERSION_NUMBER}/$TARGET-${VERSION_NUMBER}-${BINARY_NAME}
- if ! wget ${BINARY_URL} -O ${DIR}/bin/$BINARY &> /dev/null; then
- echo "[ERROR] Failed to download ${BINARY_URL}" >&2
- echo "[ERROR] Skipped $TARGET-${VERSION_NAME}-${ZIP_NAME}" >&2
- continue
- fi
+ cp $BINARY_NAME ${DIR}/bin/$BINARY
TARGET_ZIP_FILE=`pwd`/dist/$TARGET-${VERSION_NUMBER}-${ZIP_NAME}
pushd $DIR &> /dev/null
chmod +x bin/$BINARY