mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-22 21:41:37 +00:00
12 lines
259 B
Bash
Executable file
12 lines
259 B
Bash
Executable file
#!/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/
|