Skip to content

feat(updater): update the Windows beta in place from a Windows-only feed (Windows) - #339

Merged
DailyXplorer merged 2 commits into
betafrom
windows/updater
Nov 5, 2026
Merged

DailyXplorer merged 2 commits into
betafrom
windows/updater

Conversation

@DailyXplorer

Copy link
Copy Markdown
Owner

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_dispatch of beta-release.yml could never run, because the file is not on main). New work for beta: there is no main commit to port, so no -x commits.

Changes

  • Feed and install mode (src-tauri/tauri.windows.conf.json): the endpoint is https://github.com/DailyXplorer/Murmur/releases/download/windows-beta/latest.json, an asset of one rolling pre-release tagged windows-beta; windows.installMode is passive, per user as before. The base tauri.conf.json (macOS endpoint, pubkey) is not edited. createUpdaterArtifacts stays false there; the release workflow turns it on with the new src-tauri/updater-artifacts.conf.json (--config). Checked in tauri-build 2.7.4 and the CLI help: platform overlay first, then TAURI_CONFIG/--config in the order given. The missing-.sig assertion in the workflow fails the build if the CLI disagrees.
  • Settings: update_checks_enabled defaults to true on both platforms and restrict_to_windows stops forcing it off. New update_checks_turned_on_once (Windows, same pattern as window_names_turned_on_once) turns the checks on once for a store the earlier betas wrote with false; a later "off" persists. Tests rewritten and added in settings.rs (default, migration once, user off survives a reload, other restrictions unchanged).
  • prepare_update_install (lib.rs, plus build.rs and permissions/default.toml, which the platform guard requires and the design did not list): on Windows the updater plugin ends the process with exit(0) after starting the installer and skips the exit sequence that flushes settings. UpdateChecker calls it before downloadAndInstall: 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_update keeps 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.
  • UI: footer pill, tray "Check for updates" and the Advanced "Updates" group (the switch only) on Windows; "Show what's new" stays macOS-only. No new strings. updates::find logs the version found; semver as a dev-dependency (already locked, one Cargo.lock line) 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).
  • Invariants (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; no pubkey in the overlay; the two updater permissions kept; updater-artifacts.conf.json turns artifacts on; the macOS publisher still refuses non-darwin- keys and release.yml still calls it.
  • Versions (scripts/check-versions.ts): 1.9.0-beta.N uses the notes of 1.9.0; no notes file per beta. This PR leaves the version files at 1.9.0; the release-prep PR sets 1.9.0-beta.N (the signature records the build's version and semver puts beta.7 below 1.9.0).
  • Feed tooling (.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) and verify-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). notes is 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-updater runs in scripts/check.ts and in the frontend job of windows-beta.yml.
  • Release workflow (beta-release.yml, rewritten, actions pinned by SHA): a tag push v*-beta.* and a pull_request dry run (base beta, paths filter, same-repository only). build (windows-latest) checks the tag (owner, ^v\d+\.\d+\.\d+-beta\.\d+$, equals the tauri.conf.json version, commit on beta, release absent), builds and signs with the secrets TAURI_SIGNING_PRIVATE_KEY and TAURI_SIGNING_PRIVATE_KEY_PASSWORD in the env of that one step and no write token; manifest writes the notes (tag message, fixed layout), latest.json and checks the signature; publish (the only contents: write, tag only) creates the versioned pre-release first, then the rolling windows-beta pre-release if needed and uploads latest.json with --clobber; verify retries 5 x 5 s. The dry run builds a -beta.0 version while the files carry 1.9.0, so the pre-release build path is exercised. The release build skips the Rust cache. Releases are always --prerelease --latest=false.
  • Docs: AGENTS.md (the updates/ bullet and a "Windows beta updates" section), README.md, BUILD.md (release procedure, dry run, rollback), CONTRIBUTING.md (beta version scheme). README.md now 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.json is 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 beta differs from DESIGN.md: build.rs and permissions/default.toml needed the new command; the beta.7 dry-run version override and the tag-message read by git fetch in the manifest job 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 in tauri.conf.json decodes to fe227d61c56ad331 through the new verifier.
  • bun run lint, bun run format:check (Prettier and cargo fmt --check), bun run build, bun run check:types: all clean.
  • Playwright 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 the prepareUpdateInstall call 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 lane shots/ folder and were looked at.
  • cargo metadata --offline: Cargo.lock gains the single line "semver".
  • beta-release.yml and windows-beta.yml parse as YAML and pass Prettier. The git for-each-ref %(contents) tag-message read was tried on an annotated and a lightweight tag.

Rust is not built on Linux. The Windows rust job of this PR (nextest, bindings_are_current, Clippy -D warnings) is the build and the test of settings.rs, lib.rs, tray.rs and updates/mod.rs. src/bindings.ts was edited by hand in generator order. Commits were made without the repository hook (it calls check:macos-only, which beta lacks); the checks above stand in for it.

Known limits

  • The dry run of this PR is the first execution of 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.json beats the overlay, and that the manifest verifies against the shared pubkey. Fallback if the NSIS bundler refuses a pre-release string: a numeric scheme 1.9.N with the same machinery.
  • The in-place install, SmartScreen, Defender, Smart App Control, a proxy, the MCP server being ended by the installer, "Start hidden" after the update and the live feed are only checkable on a real PC: 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).
  • Until the first beta is published the feed answers 404; an app that checks then logs it and stays silent.
  • Settings changed during the download itself are the only exposure of the exit-sequence skip; an in-flight dictation at the click is lost.
  • No Authenticode certificate: SmartScreen still asks for a first install by hand.

DailyXplorer and others added 2 commits November 5, 2026 16:11
…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>
@coderabbitai

coderabbitai Bot commented Nov 5, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@DailyXplorer
DailyXplorer merged commit f6300bf into beta Nov 5, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant