Desktop app updates
An installed AgentDuo desktop app looks for new versions on the project’s published GitHub Releases. Where the build can replace itself it downloads the update in the background and installs it when you restart; where it cannot, it tells you a new version is out.
On this page
When it checks
- 15 seconds after the app starts, then every 4 hours, while Check for updates automatically is on (Settings → General).
- Check now in Settings → General, or Check for Updates… (the AgentDuo menu on macOS, Help on Windows and Linux), checks at once either way.
- It reads the release’s feed (
latest.yml,latest-mac.yml,latest-linux.yml) and compares versions. It never downgrades, and a stable version skips pre-releases. - Settings → General shows the app’s version and where its update is: up to date, downloading, ready, out but to be downloaded, or why it could not check.
Until a release is published, a check says No AgentDuo release is published on GitHub yet.
What each build does
| Build | What happens |
|---|---|
| Windows (NSIS installer), Linux AppImage | Downloads in the background (its checksum checked), then the sidebar shows Restart to update. Quitting without restarting installs it too. |
Linux .deb | Downloads the same way, but installs only on Restart to update, through pkexec, which may ask for your password; never as a surprise when you quit. |
| macOS, signed with a Developer ID | Updates like Windows. |
| macOS, ad-hoc signed | Only tells: Squirrel.Mac installs only an update signed with the same Developer ID as the running app. Get AgentDuo x.y.z opens the release page to download the dmg. |
Development build (npm run dev) | Never checks. |
Restart to update
Restarting quits as Quit does: open questions are answered, runs stopped and locks freed (a stopped pipeline stays resumable). Then the installer puts the new version in place and starts it. The app asks first when an agent is working.
Test profiles
An app started with a profile of its own (AGENTDUO_DESKTOP_USER_DATA, as every test does) never checks GitHub. It checks only a feed named by AGENTDUO_DESKTOP_UPDATE_CONFIG (an app-update.yml, for example electron-updater’s generic provider on a local server) and installs nothing: it only says a newer version is out. Without that variable, updates are off.
Where updates come from
A v* tag runs .github/workflows/release.yml:
- it checks the tag against the package versions and creates a draft release (a pre-release when the version has a
-); - macOS, Windows and Linux each build, test and upload their installers and update feed to the draft;
- the release is published only once all three have uploaded. Should one fail, it stays a draft, and installed apps see nothing.
Without a Developer ID certificate the Mac app is ad-hoc signed, so it cannot update itself; without a Windows certificate the installer is unsigned and SmartScreen warns. Download links: Download.
What has been tested
Warning
No installer update path has been verified end to end, except one: an ad-hoc signed macOS copy of 0.8.0 found 0.8.1 and showed the notify-only message (observed by the project owner on ). Installing an update on Windows, from an AppImage, from a .deb or on a Developer ID Mac build has not been verified yet.
The automated tests check the update logic itself and, in the desktop E2E, a newer version on a local feed with a test profile, which only tells.
When a check or a download fails, the app says why in Settings → General, and the updater’s log lines go to the app’s log: Diagnostics.