Add installation script for building and deploying Rojo plugin

This commit is contained in:
Joe 2026-01-02 09:50:33 -06:00
parent 00872e65a4
commit b1a409b4a3

12
install.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
set -e
MODE="${1:-release}"
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$SCRIPT_DIR"
cargo build "--$MODE"
ROJO="./target/$MODE/rojo"
"$ROJO" build plugin.project.json --plugin Rojo.rbxm
pkill -f rojo || true
sudo cp "$ROJO" /usr/local/bin/