mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 14:01:37 +00:00
- 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.
26 lines
899 B
PowerShell
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"
|
|
}
|