Upgrade
| Installed as | Update | Go back |
|---|---|---|
| macOS App | When a new version is out, New appears beside the OpenProgram name at the top left. Click it, then Download update; once it is downloaded, Restart to update. To look sooner: Settings → Versions and Updates → Application → Check now. An App outside a folder it can write gets Download and open installer instead: save the DMG, quit with Command-Q, drag it onto the copy in Applications and choose Replace. | Download that version's DMG from GitHub Releases and replace the App the same way. |
| Windows or Linux App | Same buttons; the new version installs in place. When a release needs a newer App: Windows and AppImage: click New, Download update, then Restart to update. deb: sudo apt install ./OpenProgram-X.Y.Z-linux-amd64.deb | Settings → Versions and Updates → Go back. If the App can't start. |
| Terminal or server, every system | openprogram upgrade, then openprogram worker restart | Install the older version with its exact number, then openprogram worker restart |
| Source checkout | openprogram dev deploy for the development instance, or openprogram upgrade. Restarts by itself. | Undo a change |
Installations never follow origin/main directly: they take only releases published on GitHub Releases. State under ~/.openprogram is left unchanged. If the terminal command itself is broken, reinstall the latest version:
curl -fsSL https://openprogram.io/install | sh
irm https://openprogram.io/install.ps1 | iex
What the App updater does
- macOS: picks the complete DMG for the architecture, downloads it to the location you choose, verifies byte count and SHA-256, and opens it. The shell and complete product runtime are replaced together. Unsigned packages: Open Anyway.
- The App looks for an update 30 s after it starts, then every hour.
- Settings → Versions and Updates → Update channel: Stable offers releases only; Preview offers every new build before it is released. Back on Stable, the App keeps its version until a release passes it.
- Windows, Linux: run
openprogram upgradein the version store; a newer App shell comes in the same update and is swapped in on restart. Only a deb takes the App file, when the release needs a newer shell. - Windows App file: verifies release metadata, file length and SHA-256. A signed App also requires a valid Authenticode signature from the same publisher; only an App built unsigned accepts an unsigned installer.
- Downloads go through the system proxy and resume after a dropped connection. When GitHub's API refuses or does not answer, the App finds the release through GitHub's web pages.
When an App that manages versions can't start
A thin-shell App keeps its code as numbered versions under ~/.openprogram/runtime (%USERPROFILE%\.openprogram\runtime on Windows). First start unpacks the bundled code behind a progress page, about a minute.
| Opens the recovery page | How |
|---|---|
| Automatic | The running version has not answered for two minutes and is not mid-switch |
| macOS | OpenProgram > Go back to a previous version, under About |
| Windows, Linux | Same item, bottom of the File menu |
| macOS, Windows | Hold Shift while opening the App |
| Linux deb | The launcher's Go back to a previous version action, or openprogram-desktop --recovery |
| Linux AppImage | ./OpenProgram-X.Y.Z-linux-x86_64.AppImage --recovery |
- Lists the versions kept on the computer, as Settings does. Pick one and the App restarts with it. Conversations and files are not touched.
- Shows the log path,
recovery.login the same folder. With an empty code folder it offers to restore the bundled code; it never overwrites existing code. - Apps with a built-in runtime have neither page nor menu item: every macOS App published so far and the development App.
CLI and server release
| Goal | Command |
|---|---|
| Is a new stable release available? | openprogram upgrade --check |
| Install or go back to one version | Exact-version installer command |
- Downloadruntime archive from the release tag
- Verifychecksum and manifest in staging
- Cold-startworker, before the version is live
Any stage before Activate fails: previous version stays selected, unpublished staging runtime removed
- ActivatemacOS, Linux: current symlinkWindows: launchers
macOS and Linux serialize upgrades. Version directories are kept, which is what makes rollback the same command. A running worker is not restarted.
Windows launcher replacement
- One
openprogram.cmdlauncher is prepared before activation and replaced atomically. The previous one stays asopenprogram.previous.cmd. Olderopenprogram.ps1launchers are removed, because the default script policy would refuse them. - A validated runtime is retained for retry even when launcher activation fails.
Releases that carry a seed
- When a release publishes
OpenProgram-<version>-seed-<platform>-<arch>.tar.gz,install.shandinstall.ps1put it in the version store a thin App uses,<state>/runtime;openprogramruns the versioncurrentnames. openprogram versions listshows what is kept.- Without that asset, the plain runtime above is installed.
- An interrupted install starts over on the next run. A run on an existing version store updates it through
openprogram upgradeand reports what that did.
Official updates on a version-store installation
Downloads only the files that changed and carries your own commits over. The Windows and Linux Apps update this way, and the macOS App from the first release built as a thin shell. Other macOS Apps and plain terminal installs use the routes above.
openprogram upgrade --check
openprogram upgrade
openprogram upgrade --from <directory> # a local copy of the update files
| Update file | Contents |
|---|---|
channel.json | The newest release, with its Ed25519 signature inside |
pack-<hash>.pack | The source, the built Web, and Python with its packages, as files named by their hash. Only the files this computer lacks are downloaded |
The signature is checked first and each file against its hash. An unsigned, altered or older release changes nothing. How updates are published.
| Case | Outcome |
|---|---|
| No commits of your own | The release is built here with its prebuilt Web, then tried |
| Your commits | Applied on the release oldest first, then built and tried |
| Commit conflicts | It is saved; the others carry on |
| Release already contains it | Skipped |
| Build or trial fails | Your newest commit is saved and the rest retried, ending at the unmodified release. After 5 retries the remaining commits are saved together and the unmodified release is tried. |
| Unmodified release fails | Nothing changes: current version, your commits kept |
| Needs a newer signed shell, or another Python minor version than the launcher | Waits for the next App installer (waiting_for_shell): nothing changes |
| Python and packages for this computer not published yet | Waits (waiting_for_runtime): nothing changes |
Which updates arrive
Only a release published on GitHub Releases reaches an installation. The code synced to GitHub between releases does not.
The result lists replayed and saved commits. Saved ones are git format-patch files at <state>/runtime/unreplayable/<release>/<commit>.patch, ready to apply as a new change.
Other routes
| Route | Covers |
|---|---|
| Update from chat | self_update, from a conversation |
| Recover a chat update | App stuck in maintenance, or cannot start |
| Undo a change | Back to a version, or revert one commit |
| What an update restarts | Changed paths, rebuild and restart |
| Development checkout | openprogram dev deploy to the development instance; macOS signing |