Let an installed copy update itself - #3
Merged
Conversation
The release pipeline built an installer nobody would ever be told about. This adds the other half: the app asks once at start whether a newer version is published, and the Info page grows a card offering to fetch it. Once at start, and never on a timer. Something opened to pick a colour has no business interrupting twice an hour, and the answer does not change while it is open. The download waits for a click, because it replaces the binary that is running. The release run now signs the installer and writes latest.json beside it — the file every installed copy polls. With a pubkey in the config and no private key, `tauri build` writes the installer and *then* exits non-zero, so a release missing the secret fails the job rather than shipping something the updater will refuse. Only the public key is in this commit. The private one was generated to ~/.tauri/openthemegenerator.key and never passed through the repository, the logs or this diff.
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.
Stacked on #2 — GitHub will retarget this to
mainonce that merges.#2 builds an installer nobody would ever be told about. This adds the other half.
latest.jsonbeside it — the file every installed copy polls.One thing to do before the first release, and only you can do it: the private key exists at
~/.tauri/openthemegenerator.keybut the workflow reads it from a secret. Set it withThe key was generated locally and never passed through the repository, the logs or this diff — only the public half is in
tauri.conf.json, which is where it belongs.Without that secret the release job fails loudly rather than shipping quietly: with a pubkey configured and no private key,
tauri buildwrites the installer and then exits non-zero. That is deliberate — an unsigned build would be refused by the updater in every installed copy.Verified locally: lint, svelte-check over 998 files, 303 tests, the front-end build,
cargo clippy -D warningsand the host tests all clean. The updater itself cannot be exercised until a signed release exists to update from.