File tree 1 file changed +5
-10
lines changed
1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ Example:
10
10
$ $0 protoc 3.0.0
11
11
$ $0 protoc-gen-javalite 3.0.0
12
12
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:
17
17
dist/<TARGET>-<VERSION_NUMBER>-win32.zip
18
18
dist/<TARGET>-<VERSION_NUMBER>-win64.zip
19
19
dist/<TARGET>-<VERSION_NUMBER>-osx-x86_64.zip
@@ -98,12 +98,7 @@ for((i=0;i<${#FILE_NAMES[@]};i+=2));do
98
98
BINARY=" $TARGET "
99
99
fi
100
100
BINARY_NAME=${FILE_NAMES[$(($i+1))]}
101
- BINARY_URL=https://repo1.maven.org/maven2/com/google/protobuf/$TARGET /${VERSION_NUMBER} /$TARGET -${VERSION_NUMBER} -${BINARY_NAME}
102
- if ! wget ${BINARY_URL} -O ${DIR} /bin/$BINARY & > /dev/null; then
103
- echo " [ERROR] Failed to download ${BINARY_URL} " >&2
104
- echo " [ERROR] Skipped $TARGET -${VERSION_NAME} -${ZIP_NAME} " >&2
105
- continue
106
- fi
101
+ cp $BINARY_NAME ${DIR} /bin/$BINARY
107
102
TARGET_ZIP_FILE=` pwd` /dist/$TARGET -${VERSION_NUMBER} -${ZIP_NAME}
108
103
pushd $DIR & > /dev/null
109
104
chmod +x bin/$BINARY
You can’t perform that action at this time.
0 commit comments