Skip to content

Commit 661b490

Browse files
committed
Use local artifacts
1 parent 9bf54e4 commit 661b490

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

protoc-artifacts/build-zip.sh

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Example:
1010
$ $0 protoc 3.0.0
1111
$ $0 protoc-gen-javalite 3.0.0
1212
13-
This script will download pre-built protoc or protoc plugin binaries from maven
14-
repository and create .zip packages suitable to be included in the github
15-
release page. If the target is protoc, well-known type .proto files will also be
16-
included. Each invocation will create 8 zip packages:
13+
This script will create .zip packages suitable to be included in the github
14+
release page. It requires all protoc executables to be present in the
15+
protoc-artifacts/ directory. If the target is protoc, well-known type .proto
16+
files will also be included. Each invocation will create 8 zip packages:
1717
dist/<TARGET>-<VERSION_NUMBER>-win32.zip
1818
dist/<TARGET>-<VERSION_NUMBER>-win64.zip
1919
dist/<TARGET>-<VERSION_NUMBER>-osx-aarch_64.zip
@@ -100,12 +100,7 @@ for((i=0;i<${#FILE_NAMES[@]};i+=2));do
100100
BINARY="$TARGET"
101101
fi
102102
BINARY_NAME=${FILE_NAMES[$(($i+1))]}
103-
BINARY_URL=https://repo1.maven.org/maven2/com/google/protobuf/$TARGET/${VERSION_NUMBER}/$TARGET-${VERSION_NUMBER}-${BINARY_NAME}
104-
if ! wget ${BINARY_URL} -O ${DIR}/bin/$BINARY &> /dev/null; then
105-
echo "[ERROR] Failed to download ${BINARY_URL}" >&2
106-
echo "[ERROR] Skipped $TARGET-${VERSION_NAME}-${ZIP_NAME}" >&2
107-
continue
108-
fi
103+
cp $BINARY_NAME ${DIR}/bin/$BINARY
109104
TARGET_ZIP_FILE=`pwd`/dist/$TARGET-${VERSION_NUMBER}-${ZIP_NAME}
110105
pushd $DIR &> /dev/null
111106
chmod +x bin/$BINARY

0 commit comments

Comments
 (0)