Repository navigation
Mac: the launcher updates itself from the release's disk image, with rollback - #126
Merged
elripalda merged 4 commits intoNov 13, 2026
Merged
Conversation
Update Now on a Mac downloads the DMG, checks its sha256, the version inside and its ad hoc signature (signing it ad hoc again if needed), swaps it in for the running RecompLauncher.app and opens it again. When the app's folder can't be written, the DMG link opens as before. Closes elripalda#86.
…igning it again Signing it ad hoc again let any changed app through and dropped the hardened runtime flag.
The old app is kept aside until the new one has run for 20 seconds. If the new one crashes or macOS stops it, a small watcher script puts the old one back and opens it, and its next start says the update didn't start (update-pending.json, as on Windows). Twice from the same file and it isn't offered again. Unlike a startup handshake, this needs nothing from the new version, so it also works for releases made before it.
Closed
The in-place Mac update and its rollback follow elripalda#86, and its testing on a Mac found where the update failed. Co-authored-by: innateessence <[email protected]>
Xarishark
marked this pull request as draft
November 13, 2026 02:33
This was referenced Nov 13, 2026
elripalda
marked this pull request as ready for review
November 13, 2026 12:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Series: launcher updates and Big Picture fixes. Merge one at a time, in this order. Each one stays a draft until the one before it is in.
This is 4 of 5. Merges cleanly after #127, #139 and #140.
Update Now on a Mac now installs the update in place, instead of opening the download link. Based on #86 by @innateessence.
How it works
install::undmggame installs use) and checks the app inside: the version on offer, a valid ad hoc signature, and a program for this Mac. An app that fails a check is refused, not signed again.mac_update.sh). If it crashes or macOS stops it, the old one is put back and opened, and it says "The Update Didn't Start" (update-pending.json, as on Windows). If the same file fails twice, it isn't offered again. Nothing is needed from the new version, so this works for releases made before it.No Apple Developer account is needed. The updater's own download isn't quarantined, so Gatekeeper doesn't see it; the first install from a browser still needs Open Anyway once.
Tested on an Apple Silicon Mac (macOS 27.2.1)
cargo test(443) andnode --test tests/*.test.cjs(95) pass.~/Applicationsand from a manual drag into/Applications. It stayed signed with the runtime flag, reopened, and left nothing behind.RL_API), was swapped in and rolled back twice. The second time it was marked bad.For the website (SDK guide): nothing; this doesn't change recomplauncher.json.
New strings for translation: "The Update Didn't Start", its message, "Try Again" (already exists).
Shared with the Linux updater (#125)
update-pending.jsonbefore the handoff, "The Update Didn't Start" with Try Again on the next start, and two failures from one file stop it being offered. It reuses this PR's "The Update Didn't Start" string.update_launcher, so linux appimage self update #125 is rebased after this one (see linux appimage self update #125 for the conflicts).