mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
Refactor executable path handling in Windows install script for improved clarity and consistency. Updated variable names for better readability and ensured correct path usage in gsudo commands.
This commit is contained in:
parent
cc7d2e3848
commit
63f849e735
1 changed files with 3 additions and 3 deletions
|
|
@ -4,8 +4,8 @@ param([string]$Mode = "release")
|
|||
|
||||
Set-Location $PSScriptRoot
|
||||
cargo build "--$Mode"
|
||||
$ExePath = ".\target\$Mode\rojo.exe"
|
||||
& "$ExePath" build plugin.project.json --plugin Rojo.rbxm
|
||||
$Rojo = ".\target\$Mode\rojo.exe"
|
||||
& "$Rojo" build plugin.project.json --plugin Rojo.rbxm
|
||||
if ($LASTEXITCODE -ne 0) { throw "Plugin build failed" }
|
||||
gsudo Stop-Process -Name "rojo" -Force -ErrorAction SilentlyContinue
|
||||
gsudo Copy-Item "$ExePath" "C:\Program Files\Rojo\"
|
||||
gsudo Copy-Item "$Rojo" "C:\Program Files\Rojo\"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue