From a598416d74175026455e3f2b010c49087ad5bdbb Mon Sep 17 00:00:00 2001 From: Joe Date: Sat, 20 Dec 2025 20:45:07 -0600 Subject: [PATCH] Windows install script --- install.ps1 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 install.ps1 diff --git a/install.ps1 b/install.ps1 new file mode 100644 index 00000000..ffbdb1b9 --- /dev/null +++ b/install.ps1 @@ -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\" +}