Repository navigation
feat(update): let Nightcap update itself - #160
Merged
Merged
Conversation
Ported from the Mac version's updater. `mocktail_updater nightcap` checks GitHub (cached 6 hours), verifies the signed SHA256SUMS and installs the AppImage, deb or Fedora rpm. Flatpak, Arch and Nix get their own update command instead. - When Roblox refuses the installed build and the newest one failed its test launch with this Nightcap, launch asks to update first. - Settings gets updates.nightcap (auto/notify/off) and a version row with Check/Update. - The release workflow signs SHA256SUMS and publishes the release only after every file is uploaded.
…update - Settings gets an About page with the version, the Roblox build, Check/Update, links and the log, plus a version pill next to the name that turns into Update when a release is out. The window is always dark, in neutral greys with one muted violet accent. - Installs that update by command (Flatpak, Arch, the release deb/rpm without pkexec) show it with a copy button, in Settings and in the launch dialog. Arch names the AUR helper that is installed. - The release signature covers the tag, so old signed files can't be republished as a newer release. - The restarted AppImage gets the launch's own environment, partial copies are cleaned up, and the launch gate re-checks GitHub before saying no fix is out.
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.
Nightcap now checks GitHub for its own releases and updates itself.
nightcap v<version>+ SHA256SUMS withNIGHTCAP_RELEASE_SIGNING_KEY(already in thereleaseenvironment) and fails without it. Releases are created as drafts and published after every file is up.Tested from a clean clone: full ctest passes, the release script ran against a fake gh (good, wrong and missing key), a workflow-made signature verifies in the C++ verifier and fails under another tag, and a 0.5.5 build hit the real launch gate against live Roblox and GitHub as an AppImage and a Flatpak. A real install can't be tested until a signed release exists, so the first release with this is the end-to-end test.