mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
Windows install script
This commit is contained in:
parent
88beb1d8d7
commit
a598416d74
1 changed files with 14 additions and 0 deletions
14
install.ps1
Normal file
14
install.ps1
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#Requires -Version 5.1
|
||||
|
||||
param([string]$Mode = "release")
|
||||
$DeployFolder = "C:\Program Files\Rojo"
|
||||
|
||||
Set-Location $PSScriptRoot
|
||||
cargo build "--$Mode"
|
||||
& ".\target\$Mode\rojo.exe" build plugin.project.json --plugin Rojo.rbxm
|
||||
if ($LASTEXITCODE -ne 0) { throw "Plugin build failed" }
|
||||
gsudo {
|
||||
Stop-Process -Name "rojo" -Force -ErrorAction SilentlyContinue
|
||||
Remove-Item "$DeployFolder\*" -Recurse -Force
|
||||
Copy-Item ".\target\$Mode\rojo.exe" "$DeployFolder\"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue