Move from Loadout to Surjection
For anyone who installed Loadout 1.0.x. Surjection is the same program
under its new name. At the end, Surjection is installed, the Loadout program
is gone, your data, client entries and agent skill have moved over, and the
old loadout command still works (it forwards to surject). Nothing is
deleted.
Before you start
- You don't need to close Loadout first: the Windows installer closes the
Loadout app and the
loadoutprocesses started from its install folder. - Shared project files (such as
<P>/.mcp.json) keep startingloadout, so teammates still on Loadout are not affected by your move.
Windows: the move script
move-from-loadout.ps1 checks what the machine has and does only what is
missing, and asks before each change. It works in Windows PowerShell 5.1
and PowerShell 7.
In one line
Paste this into PowerShell. It downloads the script to your temp folder, shows its signature, and runs it only when the signature is valid and from Richard Dailen Gunter (the same certificate as the installer):
$f="$env:TEMP\move-from-loadout.ps1"; iwr https://surject.dev/move-from-loadout.ps1 -UseBasicParsing -OutFile $f; $s=Get-AuthenticodeSignature $f; "Signature: $($s.Status), $($s.SignerCertificate.Subject)"; if ($s.Status -eq 'Valid' -and $s.SignerCertificate.Subject -like 'CN=Richard Dailen Gunter,*') { powershell -NoProfile -ExecutionPolicy RemoteSigned -File $f } else { Write-Warning 'Signature check failed; not running it.' }
Add -DryRun after -File $f to only see what it would do. The script
still asks before each change; what it does is described in step 3 below.
Avoid iex (iwr ...) for this: it runs the downloaded text directly, so
nothing checks the signature.
Step by step
-
Download it from https://surject.dev/move-from-loadout.ps1. That link gives the copy attached to the latest release, signed with the same certificate as the installer (Richard Dailen Gunter). To check before running it:
Get-AuthenticodeSignature .\move-from-loadout.ps1 | Format-List Status, SignerCertificateStatusshould beValid. The unsigned source is scripts/move-from-loadout.ps1 in the repository. -
In the folder you saved it to, see what it would do. This changes nothing:
powershell -NoProfile -ExecutionPolicy RemoteSigned -File .\move-from-loadout.ps1 -DryRunRemoteSignedruns a downloaded script only when it carries a valid signature. The first time, Windows asks whether to run software from this publisher: answerR(run once) orA(always run). It then lists the Loadout program it found, whether Surjection is installed and which version, any Loadout data still to move, and the latest release. -
Run it:
powershell -NoProfile -ExecutionPolicy RemoteSigned -File .\move-from-loadout.ps1It asks before each change (
-Yesskips the questions):- When Surjection is missing or older than the latest release, it
downloads the installer from GitHub, checks it against the release's
SHA256SUMSand its code signature, and installs it. The installer removes the Loadout program (its files, shortcuts, uninstall entry andPATHentry, never its data) and moves your setup over. - When something is still left to move (for example a folder set with
LOADOUT_HOME), it runssurject migrate loadout. - When
loadoutcame fromcargo install agent-loadout, it replaces it with the finalagent-loadoutrelease, which only forwards tosurject, once that release is on crates.io.-SkipCargoleaves cargo alone.
- When Surjection is missing or older than the latest release, it
downloads the installer from GitHub, checks it against the release's
-
Read the result at the end: the Surjection version, what is left to move (every line should say "not needed") and
surject doctor.
Running the script again changes nothing.
Windows without the script
- From the Loadout app: Settings > Updates > Check now offers Surjection 1.1.0. The update does the same as the installer above.
- Or download
Surjection_<version>_x64-setup.exefrom the latest release and run it.
Linux
.debor.rpm: install thesurjectionpackage from the latest release. It replacesagent-loadout. Your setup moves the first time you start the app or run asurjectcommand.- AppImage: the app's update installs Surjection in place, or download
surjection_<version>_amd64.AppImage. - AUR: install
surjectionorsurjection-bin; they replaceagent-loadoutandagent-loadout-bin. - cargo:
cargo install surjection, then runsurject migrate loadout. Theloadoutcommand fromcargo install agent-loadoutkeeps running 1.0.x until you replace it with the forwarding release (when it is published) or remove it withcargo uninstall agent-loadout.
On the command line
The move itself is one command, which every path above runs for you:
surject migrate loadout --dry-run
surject migrate loadout
Check that it worked
surject migrate loadout --dry-runreports "not needed" for every step.surject doctorfinds no problems.- Your client files start
surject(shared project files may still startloadout, which is fine). loadout --versionprints "loadout is now surject" and Surjection's version.
If your data did not move, see My Loadout data did not move over.
Undo
The client file changes the move made are one apply. Right after the move,
surject rollback last puts those files back, or use Undo this apply
on that entry in History. Going back to Loadout 1.0.x itself is not
supported: once the data folder has moved, Loadout 1.0.x refuses it instead
of damaging it.
More detail
- Coming from Loadout: every step of the move and every old name that keeps working.
- CLI reference: surject migrate loadout.