rojo/install.ps1
Joe 50b9e18514 Refactor and rebrand Rojo to Atlas
- Renamed the project from Rojo to Atlas, updating all relevant files, scripts, and documentation to reflect the new branding.
- Bumped version to 7.7.0-rc.2 and updated protocol version from 5 to 6.
- Modified installation scripts and CI workflows to use the new binary name and paths.
- Adjusted plugin settings and internal identifiers to prevent conflicts with the original Rojo.
- Enhanced session management and API response handling to support the new server fork identifier.
- Updated project templates and README files to guide users on using Atlas.
2026-02-07 13:21:52 -06:00

26 lines
899 B
PowerShell

#Requires -Version 5.1
param([string]$Mode = "release")
$InstallDir = "C:\Program Files\Atlas"
Set-Location $PSScriptRoot
if ($Mode -eq "release") {
cargo build --release --config "profile.release.debug=true"
} else {
cargo build "--$Mode"
}
$Atlas = ".\target\$Mode\atlas.exe"
& "$Atlas" build plugin.project.json --plugin Atlas.rbxm
if ($LASTEXITCODE -ne 0) { throw "Plugin build failed" }
gsudo Stop-Process -Name "atlas" -Force -ErrorAction SilentlyContinue
gsudo New-Item -ItemType Directory -Path $InstallDir -Force | Out-Null
gsudo Copy-Item "$Atlas" "$InstallDir\"
gsudo Copy-Item ".\target\$Mode\atlas.pdb" "$InstallDir\"
$MachinePath = [Environment]::GetEnvironmentVariable("Path", "Machine")
if ($MachinePath -notlike "*$InstallDir*") {
gsudo [Environment]::SetEnvironmentVariable "Path" "$MachinePath;$InstallDir" "Machine"
Write-Host "Added '$InstallDir' to system PATH"
}