diff --git a/protoc-bundled-plugin/pom.xml b/protoc-bundled-plugin/pom.xml index a1e65c9..5b31fd0 100644 --- a/protoc-bundled-plugin/pom.xml +++ b/protoc-bundled-plugin/pom.xml @@ -244,6 +244,33 @@ exe 3.0.0-win32-x86 + + + + src/main/binaries/3.3.0/protoc-3.3.0-linux-x86 + exe + 3.3.0-linux-x86 + + + src/main/binaries/3.3.0/protoc-3.3.0-linux-x86_64 + exe + 3.3.0-linux-x86_64 + + + src/main/binaries/3.3.0/protoc-3.3.0-mac_os_x-x86 + exe + 3.3.0-mac_os_x-x86 + + + src/main/binaries/3.3.0/protoc-3.3.0-mac_os_x-x86_64 + exe + 3.3.0-mac_os_x-x86_64 + + + src/main/binaries/3.3.0/protoc-3.3.0-win32-x86.exe + exe + 3.3.0-win32-x86 + diff --git a/protoc-bundled-plugin/src/main/binaries/3.3.0/protoc-3.3.0-linux-x86 b/protoc-bundled-plugin/src/main/binaries/3.3.0/protoc-3.3.0-linux-x86 new file mode 100755 index 0000000..46f6de6 Binary files /dev/null and b/protoc-bundled-plugin/src/main/binaries/3.3.0/protoc-3.3.0-linux-x86 differ diff --git a/protoc-bundled-plugin/src/main/binaries/3.3.0/protoc-3.3.0-linux-x86_64 b/protoc-bundled-plugin/src/main/binaries/3.3.0/protoc-3.3.0-linux-x86_64 new file mode 100755 index 0000000..74aacb0 Binary files /dev/null and b/protoc-bundled-plugin/src/main/binaries/3.3.0/protoc-3.3.0-linux-x86_64 differ diff --git a/protoc-bundled-plugin/src/main/binaries/3.3.0/protoc-3.3.0-mac_os_x-x86 b/protoc-bundled-plugin/src/main/binaries/3.3.0/protoc-3.3.0-mac_os_x-x86 new file mode 100755 index 0000000..a148729 Binary files /dev/null and b/protoc-bundled-plugin/src/main/binaries/3.3.0/protoc-3.3.0-mac_os_x-x86 differ diff --git a/protoc-bundled-plugin/src/main/binaries/3.3.0/protoc-3.3.0-mac_os_x-x86_64 b/protoc-bundled-plugin/src/main/binaries/3.3.0/protoc-3.3.0-mac_os_x-x86_64 new file mode 100755 index 0000000..11775c0 Binary files /dev/null and b/protoc-bundled-plugin/src/main/binaries/3.3.0/protoc-3.3.0-mac_os_x-x86_64 differ diff --git a/protoc-bundled-plugin/src/main/binaries/3.3.0/protoc-3.3.0-win32-x86.exe b/protoc-bundled-plugin/src/main/binaries/3.3.0/protoc-3.3.0-win32-x86.exe new file mode 100644 index 0000000..d0cbf23 Binary files /dev/null and b/protoc-bundled-plugin/src/main/binaries/3.3.0/protoc-3.3.0-win32-x86.exe differ diff --git a/protoc-bundled-plugin/tools/fetch-new-protoc.sh b/protoc-bundled-plugin/tools/fetch-new-protoc.sh new file mode 100755 index 0000000..6f4d0da --- /dev/null +++ b/protoc-bundled-plugin/tools/fetch-new-protoc.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +# May be used to fetch a new version of the protoc binaries. + +set -e + +export PB_VERSION=3.3.0 +export BUNDLE_BIN_DIR="$PWD"/protoc-bundled-plugin/src/main/binaries/"$PB_VERSION" + +echo "Fetching $PB_VERSION into $BUNDLE_BIN_DIR" + +if ! [ -d "$(dirname "$BUNDLE_BIN_DIR")" ]; then + echo "$0 must be run from project root" + exit 1 +fi + +mkdir -p "$BUNDLE_BIN_DIR" + +curl -L -O https://github.com/google/protobuf/releases/download/v"$PB_VERSION"/protoc-"$PB_VERSION"-linux-x86_32.zip +curl -L -O https://github.com/google/protobuf/releases/download/v"$PB_VERSION"/protoc-"$PB_VERSION"-linux-x86_64.zip +curl -L -O https://github.com/google/protobuf/releases/download/v"$PB_VERSION"/protoc-"$PB_VERSION"-osx-x86_64.zip +curl -L -O https://github.com/google/protobuf/releases/download/v"$PB_VERSION"/protoc-"$PB_VERSION"-osx-x86_32.zip +curl -L -O https://github.com/google/protobuf/releases/download/v"$PB_VERSION"/protoc-"$PB_VERSION"-win32.zip + +unzip -p protoc-"$PB_VERSION"-linux-x86_32.zip bin/protoc \ + > "$BUNDLE_BIN_DIR"/protoc-"$PB_VERSION"-linux-x86 +unzip -p protoc-"$PB_VERSION"-linux-x86_64.zip bin/protoc \ + > "$BUNDLE_BIN_DIR"/protoc-"$PB_VERSION"-linux-x86_64 +unzip -p protoc-"$PB_VERSION"-osx-x86_64.zip bin/protoc \ + > "$BUNDLE_BIN_DIR"/protoc-"$PB_VERSION"-mac_os_x-x86_64 +unzip -p protoc-"$PB_VERSION"-osx-x86_32.zip bin/protoc \ + > "$BUNDLE_BIN_DIR"/protoc-"$PB_VERSION"-mac_os_x-x86 +unzip -p protoc-"$PB_VERSION"-win32.zip bin/protoc.exe \ + > "$BUNDLE_BIN_DIR"/protoc-"$PB_VERSION"-win32-x86.exe + +chmod +x "$BUNDLE_BIN_DIR"/protoc-* +chmod -x "$BUNDLE_BIN_DIR"/protoc-*.exe + +rm *.zip + +echo Do not forget to update the POM to add '' entries for +echo the new binaries.