Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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 loadout processes started from its install folder.
  • Shared project files (such as <P>/.mcp.json) keep starting loadout, 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

  1. 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, SignerCertificate
    

    Status should be Valid. The unsigned source is scripts/move-from-loadout.ps1 in the repository.

  2. In the folder you saved it to, see what it would do. This changes nothing:

    powershell -NoProfile -ExecutionPolicy RemoteSigned -File .\move-from-loadout.ps1 -DryRun
    

    RemoteSigned runs a downloaded script only when it carries a valid signature. The first time, Windows asks whether to run software from this publisher: answer R (run once) or A (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.

  3. Run it:

    powershell -NoProfile -ExecutionPolicy RemoteSigned -File .\move-from-loadout.ps1
    

    It asks before each change (-Yes skips the questions):

    • When Surjection is missing or older than the latest release, it downloads the installer from GitHub, checks it against the release's SHA256SUMS and its code signature, and installs it. The installer removes the Loadout program (its files, shortcuts, uninstall entry and PATH entry, never its data) and moves your setup over.
    • When something is still left to move (for example a folder set with LOADOUT_HOME), it runs surject migrate loadout.
    • When loadout came from cargo install agent-loadout, it replaces it with the final agent-loadout release, which only forwards to surject, once that release is on crates.io. -SkipCargo leaves cargo alone.
  4. 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.exe from the latest release and run it.

Linux

  • .deb or .rpm: install the surjection package from the latest release. It replaces agent-loadout. Your setup moves the first time you start the app or run a surject command.
  • AppImage: the app's update installs Surjection in place, or download surjection_<version>_amd64.AppImage.
  • AUR: install surjection or surjection-bin; they replace agent-loadout and agent-loadout-bin.
  • cargo: cargo install surjection, then run surject migrate loadout. The loadout command from cargo install agent-loadout keeps running 1.0.x until you replace it with the forwarding release (when it is published) or remove it with cargo 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-run reports "not needed" for every step.
  • surject doctor finds no problems.
  • Your client files start surject (shared project files may still start loadout, which is fine).
  • loadout --version prints "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