Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions protoc-bundled-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,33 @@
<type>exe</type>
<classifier>3.0.0-win32-x86</classifier>
</artifact>

<!-- 3.3.0 -->
<artifact>
<file>src/main/binaries/3.3.0/protoc-3.3.0-linux-x86</file>
<type>exe</type>
<classifier>3.3.0-linux-x86</classifier>
</artifact>
<artifact>
<file>src/main/binaries/3.3.0/protoc-3.3.0-linux-x86_64</file>
<type>exe</type>
<classifier>3.3.0-linux-x86_64</classifier>
</artifact>
<artifact>
<file>src/main/binaries/3.3.0/protoc-3.3.0-mac_os_x-x86</file>
<type>exe</type>
<classifier>3.3.0-mac_os_x-x86</classifier>
</artifact>
<artifact>
<file>src/main/binaries/3.3.0/protoc-3.3.0-mac_os_x-x86_64</file>
<type>exe</type>
<classifier>3.3.0-mac_os_x-x86_64</classifier>
</artifact>
<artifact>
<file>src/main/binaries/3.3.0/protoc-3.3.0-win32-x86.exe</file>
<type>exe</type>
<classifier>3.3.0-win32-x86</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
42 changes: 42 additions & 0 deletions protoc-bundled-plugin/tools/fetch-new-protoc.sh
Original file line number Diff line number Diff line change
@@ -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 '<artifact>' entries for
echo the new binaries.