Files
panel/scripts/gen-proto.sh
T
dbledeez a00bd620a1 Panel — public source drop (v0.9.0)
Self-hostable game-server control panel: controller + agent + 26 game
modules. One-line install (prebuilt release, no Go required):

  curl -fsSL https://git.pdxtechs.com/dbledeez/panel/raw/branch/main/install.sh | sudo bash

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 21:17:39 -07:00

26 lines
508 B
Bash

#!/usr/bin/env bash
# Regenerate protobuf Go stubs.
# Requires: buf, protoc-gen-go, protoc-gen-go-grpc on $PATH.
set -euo pipefail
cd "$(dirname "$0")/.."
if ! command -v buf >/dev/null 2>&1; then
echo "error: buf not on PATH" >&2
echo "install: go install github.com/bufbuild/buf/cmd/buf@latest" >&2
exit 1
fi
echo ">> buf lint"
buf lint
echo ">> buf generate"
buf generate
echo ">> tidy go modules"
for dir in proto controller agent; do
(cd "$dir" && go mod tidy)
done
echo ">> done"