Repository navigation
feat(updater): update the Windows beta in place from a Windows-only feed (Windows) - #339
Merged
Merged
Conversation
…feed Pushing the annotated tag v<version>-beta.N on a commit of beta builds the NSIS installer, signs it with the updater key, publishes it as a pre-release and points the rolling windows-beta pre-release (the feed the Windows app will read) at it. The workflow_dispatch of beta-release.yml could never run (the file is not on main) and is removed. A pull request touching the workflow or the tooling runs the build, the signature and the manifest as a dry run and publishes nothing. - .github/scripts/minisign.mjs: verify-only minisign on Node crypto (Ed25519 over the BLAKE2b-512 prehash, global signature over the trusted comment). - .github/scripts/windows-updater-manifest.mjs: notes, build, verify and verify-public. The feed has windows-* keys only; the signature must be for the installer's name and the tag's version; the public check also reads the macOS feed (still darwin-only, no pre-release version) and the latest release (not a beta). - Tests use a fixture signed by a throw-away key made with the Tauri CLI (only public keys committed) and negative cases: wrong key, tampered file, wrong version or name in the trusted comment, a darwin key, a bad tag. - src-tauri/updater-artifacts.conf.json: the release workflow turns updater artifacts on with --config, which merges after the Windows overlay; the overlay keeps them off for ordinary builds. - bun run test:windows-updater runs in check.ts and in the frontend job of windows-beta.yml. - BUILD.md: the release procedure and the rollback. Decisions: the key pair is the macOS updater one (repository secrets, names only, in the env of the one build step, no write token in that job); the dry run builds a -beta.0 version while the files carry the plain one so the pre-release build path is exercised; the release build does not use the cache. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A tester who has the first auto-updating beta installed is offered every later Windows beta in Murmur: footer pill, Settings > Advanced > Updates, tray item. The installer runs passive (progress bar, per user, no administrator prompt) and Murmur comes back by itself. - tauri.windows.conf.json: endpoint https://github.com/DailyXplorer/Murmur/ releases/download/windows-beta/latest.json and windows.installMode passive. The base config (macOS endpoint, pubkey) is untouched, so a Mac never reads the Windows feed. createUpdaterArtifacts stays false there. - settings: update checks are on by default on both platforms, restrict_to_windows no longer forces them off, and update_checks_turned_on_once (same pattern as window_names_turned_on_once) turns them on once for stores the earlier betas wrote with false; a later off persists. - prepare_update_install (lib.rs, build.rs, permissions): on Windows the updater plugin ends the process with exit(0) after starting the installer, which skips the exit sequence that flushes settings. The page calls it before downloadAndInstall: it leaves the update-relaunch marker (the window shows after the restart even with Start hidden) and flushes the pending settings write. - Footer, Advanced and the tray show the update UI on Windows; What's New stays macOS-only. updates::find logs the found version. - check-platforms: the Windows feed, passive mode, base feed, shared pubkey, updater permissions and the darwin-only publisher are asserted. - check-versions: 1.9.0-beta.N uses the notes of 1.9.0. - semver dev-dependency (already locked) for the version-ordering tests. - Docs: AGENTS.md, README.md, CONTRIBUTING.md. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This was referenced Nov 5, 2026
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.
Summary
A tester who has the first auto-updating Windows beta installed is offered every later beta inside Murmur: the footer pill ("Check for updates", then "Update available"), the Settings > Advanced > Updates switch and the tray item. The installer runs with a progress bar and no administrator prompt, and Murmur comes back by itself. Windows installs read only a Windows feed and a Mac never sees a Windows beta: macOS v1.12.0 stays the Latest release and the macOS feed is not touched. Publishing a beta becomes one pushed tag (the
workflow_dispatchofbeta-release.ymlcould never run, because the file is not onmain). New work forbeta: there is nomaincommit to port, so no-xcommits.Changes
src-tauri/tauri.windows.conf.json): the endpoint ishttps://github.com/DailyXplorer/Murmur/releases/download/windows-beta/latest.json, an asset of one rolling pre-release taggedwindows-beta;windows.installModeispassive, per user as before. The basetauri.conf.json(macOS endpoint,pubkey) is not edited.createUpdaterArtifactsstaysfalsethere; the release workflow turns it on with the newsrc-tauri/updater-artifacts.conf.json(--config). Checked intauri-build2.7.4 and the CLI help: platform overlay first, thenTAURI_CONFIG/--configin the order given. The missing-.sigassertion in the workflow fails the build if the CLI disagrees.update_checks_enableddefaults to true on both platforms andrestrict_to_windowsstops forcing it off. Newupdate_checks_turned_on_once(Windows, same pattern aswindow_names_turned_on_once) turns the checks on once for a store the earlier betas wrote withfalse; a later "off" persists. Tests rewritten and added insettings.rs(default, migration once, user off survives a reload, other restrictions unchanged).prepare_update_install(lib.rs, plusbuild.rsandpermissions/default.toml, which the platform guard requires and the design did not list): on Windows the updater plugin ends the process withexit(0)after starting the installer and skips the exit sequence that flushes settings.UpdateCheckercalls it beforedownloadAndInstall: it leaves the update-relaunch marker (so the window shows after the restart even with "Start hidden") and flushes the pending settings write.relaunch_after_updatekeeps working for macOS and shares the marker helper. A download that fails after the call leaves the marker, so the next start shows the window once.updates::findlogs the version found;semveras a dev-dependency (already locked, oneCargo.lockline) for the ordering tests (1.9.0-beta.7 > 1.9.0-beta.6,beta.10 > beta.9,beta.7 < 1.9.0, the crate's own version parses).scripts/check-platforms.ts): replace "the Windows build reaches the updater" by: Windows artifacts off; endpoints exactly the feed and no/releases/latest/; passive mode; base endpoint unchanged; nopubkeyin the overlay; the two updater permissions kept;updater-artifacts.conf.jsonturns artifacts on; the macOS publisher still refuses non-darwin-keys andrelease.ymlstill calls it.scripts/check-versions.ts):1.9.0-beta.Nuses the notes of1.9.0; no notes file per beta. This PR leaves the version files at1.9.0; the release-prep PR sets1.9.0-beta.N(the signature records the build's version and semver putsbeta.7below1.9.0)..github/scripts/minisign.mjs,windows-updater-manifest.mjs, no dependency):notes,build,verify(offline: key id, Ed25519 over the BLAKE2b-512 prehash, global signature over the trusted comment,file:equals the installer name,version:equals the tag) andverify-public(feed, installer URL, signature, SHA-256 line of the notes, macOS feed still darwin-only without a pre-release version, latest release not a beta).notesis an addition to the three sub-commands of the brief. Tests: fixture signed by a throw-away key made with the Tauri CLI (public keys only are committed), negative cases for a wrong key, a tampered file, a wrong version or name in the trusted comment, a darwin key and a bad tag, and a stand-in for GitHub for the public checks.bun run test:windows-updaterruns inscripts/check.tsand in thefrontendjob ofwindows-beta.yml.beta-release.yml, rewritten, actions pinned by SHA): a tag pushv*-beta.*and apull_requestdry run (basebeta, paths filter, same-repository only).build(windows-latest) checks the tag (owner,^v\d+\.\d+\.\d+-beta\.\d+$, equals thetauri.conf.jsonversion, commit onbeta, release absent), builds and signs with the secretsTAURI_SIGNING_PRIVATE_KEYandTAURI_SIGNING_PRIVATE_KEY_PASSWORDin the env of that one step and no write token;manifestwrites the notes (tag message, fixed layout),latest.jsonand checks the signature;publish(the onlycontents: write, tag only) creates the versioned pre-release first, then the rollingwindows-betapre-release if needed and uploadslatest.jsonwith--clobber;verifyretries 5 x 5 s. The dry run builds a-beta.0version while the files carry1.9.0, so the pre-release build path is exercised. The release build skips the Rust cache. Releases are always--prerelease --latest=false.AGENTS.md(theupdates/bullet and a "Windows beta updates" section),README.md,BUILD.md(release procedure, dry run, rollback),CONTRIBUTING.md(beta version scheme).README.mdnow tells testers to take the newest release named "Murmur for Windows 1.9.0-beta.N", since the rolling "update feed" release would otherwise sometimes head the list.Channel: a rolling pre-release holding
latest.jsonis Windows-only by construction, leaves the macOS endpoint and release workflow alone, and rolls back with one upload. Rejected: a{{target}}endpoint on the Latest release (it would put Windows keys in the macOS feed that the macOS publisher forbids) and a file on a branch or GitHub Pages (a CI commit per release, caching, an extra moving part).Where the code on
betadiffers fromDESIGN.md:build.rsandpermissions/default.tomlneeded the new command; the beta.7 dry-run version override and the tag-message read bygit fetchin themanifestjob are additions.Testing
On the VPS (Linux), once, at the end:
bun run check:translations: all 5 languages complete.bun run check:platforms:platform check passed for 155 Rust files and 154 frontend files.bun run check:versions:release versions match;bun run test:versions:version checks passed(beta, mismatch and missing-notes cases added);bun scripts/check.test.ts:check contract passed.bun run test:updater-manifest:publish-updater-manifest: all assertions passed;bun run test:windows-updater:windows updater manifest tests passed. The macOS key id intauri.conf.jsondecodes tofe227d61c56ad331through the new verifier.bun run lint,bun run format:check(Prettier andcargo fmt --check),bun run build,bun run check:types: all clean.tests/update-pill.spec.ts tests/windows-platform.spec.ts tests/settings-organization.spec.ts:45 passed. The new pill test fails (Expected: >= 0, Received: -1) when theprepareUpdateInstallcall is removed. Screenshots (light, English) of the footer in its three states on the Windows platform and of the Advanced Updates group are in the laneshots/folder and were looked at.cargo metadata --offline:Cargo.lockgains the single line"semver".beta-release.ymlandwindows-beta.ymlparse as YAML and pass Prettier. Thegit for-each-ref %(contents)tag-message read was tried on an annotated and a lightweight tag.Rust is not built on Linux. The Windows
rustjob of this PR (nextest,bindings_are_current, Clippy-D warnings) is the build and the test ofsettings.rs,lib.rs,tray.rsandupdates/mod.rs.src/bindings.tswas edited by hand in generator order. Commits were made without the repository hook (it callscheck:macos-only, whichbetalacks); the checks above stand in for it.Known limits
beta-release.yml. It is the proof that the real key signs a Windows NSIS build with a pre-release version, that--config src-tauri/updater-artifacts.conf.jsonbeats the overlay, and that the manifest verifies against the sharedpubkey. Fallback if the NSIS bundler refuses a pre-release string: a numeric scheme1.9.Nwith the same machinery.OWNER_CHECKS.md. Beta.6 and older have no updater, so beta.7 is installed by hand once; beta.8 is the first end-to-end test (RELEASE_BETA7.md).