Files
Lam Wei Lun 6a451abaf1 Install policy: one Windows scope, Sparkle on macOS
Windows: the installer keeps a single scope and swaps the tree in place.
Children move into <tree>\.old and the staged ones move up, so the old
version stays runnable until a complete new one exists and nothing outside
the tree is written. An install now needs the administrator token only when
the tree is not writable; the ACE granted on the tree is what makes later
updates prompt-free. The grant goes through icacls from System32 against a
SID an unelevated process passes in, so no binary read from the tree is ever
executed elevated.

The installer marks the tree it was handed with --tree-named, because NSIS
strips /D= from its own command line and a named default and a double-click
otherwise look alike. A named tree that disagrees with the machine record is
refused instead of replaced. Exit code 5 now separates "swap finished, the
old files could not be deleted" from 3, so a finished install is recorded and
started rather than reported as a failure.

macOS: Sparkle 2 owns the check, the signature check, the install and the
relaunch. MacUpdater.mm only selects the feed, the stable one or a nightly
one, and the bundle carries the feed URL and the EdDSA key. The DMG-swap
helper is gone. CI generates the signed appcast from the release's DMG and
publishes it to gh-pages; the existing feed is downloaded to the output path
the generator merges from, and a feed that loses entries fails the job.

The team-id pin becomes the Sparkle public key, and the helper's signing
stamp goes with it: what a macOS build accepts is now in the bundle the
release ships.
2026-12-01 15:41:39 +08:00
..
2026-11-28 09:57:03 +08:00
2025-08-22 20:02:26 +08:00
2025-09-20 09:12:31 +08:00