mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-01-10 02:58:48 +08:00
c5d57c03ee
* Replace protobuf 2.6.1 with 3.21.8 * Update/add protobuf libs * Add CS2 protos * Remove old csgo/dota protos * Add versioned protoc bin * Comment out Valve's `schema` define for now * Use ENetworkDisconnectionReason * Fix-up `offsetof` to avoid errors on some Clang versions
18 lines
407 B
Bash
18 lines
407 B
Bash
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
# Change to the script's directory
|
|
cd $(dirname $0)
|
|
|
|
# Download 3.0.0 version of protoc
|
|
PROTOC_BINARY_NAME="protoc-3.0.0-linux-x86_64.exe"
|
|
if [ `uname` = "Darwin" ]; then
|
|
PROTOC_BINARY_NAME="protoc-3.0.0-osx-x86_64.exe"
|
|
fi
|
|
wget https://repo1.maven.org/maven2/com/google/protobuf/protoc/3.0.0/${PROTOC_BINARY_NAME} -O protoc
|
|
chmod +x protoc
|
|
|
|
# Run tests
|
|
RUBYLIB=../../lib:. rake test
|