mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
Add installation script for building and deploying Rojo plugin
This commit is contained in:
parent
00872e65a4
commit
b1a409b4a3
1 changed files with 12 additions and 0 deletions
12
install.sh
Executable file
12
install.sh
Executable 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/
|
||||
Loading…
Add table
Add a link
Reference in a new issue