From 63f849e73503be86f271485255542eddd401d15d Mon Sep 17 00:00:00 2001 From: Joe Date: Sat, 20 Dec 2025 20:59:30 -0600 Subject: [PATCH] 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. --- install.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.ps1 b/install.ps1 index 62c9148d..95e237b1 100644 --- a/install.ps1 +++ b/install.ps1 @@ -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\"