Update Windows install script to use a direct path for copying the executable, removing the commented-out item removal line.

This commit is contained in:
Joe 2025-12-20 20:56:31 -06:00
parent 7a7243f78a
commit 83bbf0ef6b

View file

@ -1,7 +1,6 @@
#Requires -Version 5.1
param([string]$Mode = "release")
$DeployFolder = "C:\Program Files\Rojo"
Set-Location $PSScriptRoot
cargo build "--$Mode"
@ -9,6 +8,5 @@ cargo build "--$Mode"
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\"
Copy-Item ".\target\$Mode\rojo.exe" "C:\Program Files\Rojo\"
}