Files
craft-launcher/packaging
c7047d4771 Add opt-in nightly builds on a separate Pre-Release page (#1563)
* Add opt-in isolated nightly app management

* Require signed v2 nightlies before replacement

* Select nightly signature helper from the Windows system API

* Provision signed native test fixture explicitly

* Isolate the nightly metadata helper environment

* ci(windows): require the pinned signed fixture in native tests

* fix: stabilize nightly consumer CI checks

* fix(nightly): recover owned mutations and guard managed opens

Keep Nightly replacement/removal restartable with bounded ownership journals and
held parents, preserve unregistered metadata actionably, and distinguish rollback
from committed cleanup. Separate execution approval from ownership and admit Open
through the worker lifecycle, including authoritative busy state.

Retain focused crash/rollback and UI regressions, plus nonignored Windows-native
mechanics cases for the existing future hosted route.

* test(nightly): keep recovery fixtures owner-only

* fix(nightly): reconcile journal errors and fence lifecycle publication

* fix(nightly): retain restart ownership through failed update retirement

* fix(nightly): sync manifest directory before retiring rollback state

* fix(nightly): release owned locks before closing retained descriptions

* Scope Nightly separation to apps with their own Pre-Release channel

PhotoCraft is the only app with a separate Pre-Release channel, recorded in one
core roster. Only its ordinary picker, release cache, saved settings and stable
installs exclude nightlies. SolidCraft, other apps and the Launcher keep main's
Nightly follow and pin rows and its publication-time selection. Core now ranks
Nightly candidates for both the strict selector and native discovery.

Also: stale PhotoCraft Nightly cache entries are no longer replayed or
revalidated, saved PhotoCraft Nightly tracks migrate to Stable, Linux removes
the owned download rather than the verified snapshot, declining consent no
longer opens the destination, new macOS Nightly installs are refused until
configured, and unusable Pre-Release storage shows a scoped error instead of
hiding the page.

* Keep the Pre-Release destination behind consent

Errors, including unusable Pre-Release storage, no longer open the destination
before consent; with consent the page shows them as scoped errors. The
refusal-only context lists roster apps that run on this platform.

* Freeze the faked gpg clock in the expired-key test fixture

Without a trailing "!", gpg's faked clock advances while each process runs.
On a slow runner the primary key can be created a second after the subkey
step's start time, and gpg then refuses the subkey with "Time conflict".
Freezing the clock makes the key, subkey and signature times exact.

* Address the CodeRabbit review of the Nightly channel

- Keep the last known Nightly record when the manifest can't be read,
  instead of publishing an empty one.
- Never move an entry back by name after an identity mismatch in move_to.
- Clear only the exact empty-journal crash state left before the header.
- Take record paths relative to the record's own proven program root, so
  Windows uninstall and Open accept the installer's verbatim paths.
- Use the XDG home defaults for unset, empty or relative variables.
- Read past pages full of PhotoCraft nightlies in the ordinary lookup and
  version list, reporting incomplete instead of caching "no release".
- Attribute the bundled Pre-Release icons and fix the version dialog copy.

* Address the remaining CodeRabbit threads on the Nightly channel

- Store no ETag for a multi-page PhotoCraft answer, so a 304 on page 1
  can't replay an answer read from a later page that has since changed.
- Drive the Windows uninstall regression with a record the real portable
  installer produced.
- Make the permission probes fail clearly when writes aren't denied.
- Assert the digest-specific refusal in the tampered-copy test.
- Make archive test setup failures fail, and run those tests only where a
  Nightly profile is admitted.

* Assert write denial in the pre-preparation permission probe

Like the other two permission probes, check that mode 0500 actually denies
writes before trusting the probe, so a privileged run fails clearly.

* Show Nightly install progress on the Pre-Release card

While a Nightly job runs, the card now shows its phase and progress with
the existing captions and progress bar, instead of an "Install pre-release"
button that looked idle. The backend log names Nightly Open as an open job.

* Decide the Nightly channel by app, not by the repository name

The feed can rename an app's repository, so a separate Pre-Release channel is
now decided from the app itself. Ordinary lookups, their cache and ETag,
paging, version lists and the web build take a ReleaseQuery that carries the
app's policy with the repository to ask.

Also, for an app with its own channel: a release whose tag names a Nightly
counts as one even without the prerelease flag; the ordinary lookup reads
100 releases a page like the version list; and unusable Pre-Release storage
reports its notice once.

* Check the header fits the gear, the bell and the Pre-Release switch

At a wide and a narrow width, in both themes, the four header controls stay
inside the window without overlapping.

* Also check the header at a width that needs the compact logo

* Drop an unused import from the header check

* Fonts tab: manage fonts and preview them from the font preview server (#1546)

* Fonts page: Craft Font Manager beside the apps in the toolbar, font downloads and sources in Settings

The toolbar row starts with a page toggle, Apps | Fonts (desktop only; the web build has one
page and no toggle). While Fonts is shown, the apps' controls in that row give way to the
panel's own. The Fonts page embeds craft-font-manager's panel in the launcher's look; it is
built the first time it shows, from the font store's indexes, keeps its sample settings in the
launcher's settings, and repaints when another app installs or removes a font. Settings has
Allow font downloads, the font store's consent shared by every Craft app, and the font sources.

Pins craft-libs ad0cb48e82 for craft-font-manager, craft-ui, craft-update and craft-flags.

* Fonts: previews from the suite's font preview server

Pins craft-ui, craft-update, craft-flags, craft-quit and craft-font-manager to one craft-libs
source, aiongg/craft-libs 06b484aa (font-previews, storytold/craft-libs#2782). The font store
gets the suite's preview server as the host's default, never saved as the user's choice.
Settings' Fonts box gets Show font previews and a font preview server field, both saved in the
font store every Craft app shares; the field shows the default as its placeholder, is read-only
while CRAFT_FONT_PREVIEW_URL sets the server, and shows the store's message for a refused
address. Either change asks the panel to read the preview settings again.

* Fonts: repin craft-libs to c50f931b; the AI agents tests allow the font sources' Add button

* Fonts settings: draw the font sources in the language whose face is installed

* Fonts settings: the preview server field sits under Advanced

* Fonts: downloads allowed by default; repin craft-libs b9eba625

* Fonts settings: toggling previews keeps a refused server address and its error

* Repin craft-libs to 644a7e6f

* Fonts: say when the preview server is unreachable, default filters to sans-serif and system language, report why a second start exits

* Fonts page test: expect the default Sans and language filters

* nightly_unix: take the zip entry name as &str (zip 9 returns a Cow)

* Revert "Fonts tab: manage fonts and preview them from the font preview server (#1546)"

This reverts commit c4af9f3926.

* Borrow the ZIP entry name in the macOS Nightly extractor

zip 9 returns the entry name as a Cow<str>, so the two branches had
different types and the macOS-only extractor didn't compile. Found and
fixed by @aiongg in #1546; kept here because the revert of #1546 removed it.

Co-authored-by: aiongg <67543387+aiongg@users.noreply.github.com>

---------

Co-authored-by: aiongg <67543387+aiongg@users.noreply.github.com>
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-23 15:50:08 +00:00
..