Commit Graph

7 Commits

Author SHA1 Message Date
skylartaylor 20c9bebb47 app(nightly): fix the batch-1 review and the standard Nightly tar layout
Closes every finding in the batch-1 review of our two commits:

- main.rs: the version log line passed a call as an inline format argument (a compile
  error); it is now a positional argument. Same for the joined-flag test in
  launch_profile.rs.
- profile_root.rs: the accepted Windows + FLATPAK_ID case creates the root, so the
  "a refused launch creates nothing" assertion could not hold; it is now made per
  refused case, and the accepted case cleans up after itself.
- The updater is off in a Nightly: the runtime keeps no Updater unless
  os_window::stable_services_allowed(), tick/pump/start_pending_update return early
  without one, and Help > Check for Updates says ArtCraft Launcher manages the
  Nightly's updates instead of offering a stable release (whose records live in the
  stable app's folders the profile fence refuses). New test.
- AppInfo.id stays "vectorcraft" in both channels (it is the craft-settings id a
  theme's [apps.<id>] pins key on); only name and version vary. New test.
- A caught panic no longer clears the session record: nightly_session::release()
  drops the lease and keeps the record. New test.
- The Nightly window title and drawn title bar carry "VectorCraft Nightly". New test.
- .gitignore gains __pycache__/ (the producer checks for a clean tree).
- nightly-signing-tests.ps1 names the real HEAD and run date, so Assert-NightlySource
  passes and the mocked compiler boundary is what stops the run.
- eframe's persistence_path is a folder of its own (<profile>/eframe), not craft's
  window.json file; the docs stop claiming an app.ron is written today.

Standard Nightly layout: `<app>` is the launcher and `<app>-bin` the GUI it starts, in
every Linux format, through one launcher (packaging/linux/nightly-launch.sh, replacing
the per-format heredocs and nightly-arch-launch.sh): tar vectorcraft/vectorcraft-bin,
deb+rpm /usr/bin/vectorcraft-nightly + /usr/lib/vectorcraft-nightly/vectorcraft-bin,
AppImage AppRun + usr/bin/vectorcraft-bin, Arch bin/vectorcraft +
bin/.vectorcraft-nightly/vectorcraft-bin, Flatpak /app/bin/vectorcraft +
/app/libexec/vectorcraft-bin. It finds the GUI from its own directory, adds
--launch-profile nightly-v1 --profile-root ... --, and passes a version/help query, the
Launcher's own invocation or a caller-written -- through untouched. New suite
packaging/linux/nightly-launch-tests.py drives all five placements; the archive policy,
its tests, the arch test and the docs follow the layout. The nightly deb/rpm tree also
stops shipping stable's /usr/bin/vectorcraft-cli beside the nightly CLI. The Nightly tar
ships the Nightly art instead of stable's icon.

Deviation recorded in RESULT.md: the refusal message still goes to standard error rather
than a native dialog (workspace denies unsafe_code, winsafe is wgpu-only, a dialog crate
would change Cargo.lock; a modal box also risks hanging a headless run).
2026-11-25 00:02:28 +01:00
skylartaylor 16068b9c7d packaging(linux): start every nightly format the flavor's way, and close the port's gaps
Second commit on top of Dylan Taylor's #9233; his commits, names and files stay his.

The nightly build refuses VECTORCRAFT_CONFIG_DIR (its profile root comes from the Launcher), so his
wrappers, which set that variable, would have been refused at startup. Every one of them now passes
the protocol instead - `--launch-profile nightly-v1 --profile-root <dir> --` - with the exact
--version/-V passthrough kept in front, because a version flag after `--` is a file name:

- the deb/rpm wrapper in packaging/linux/package.sh;
- the AppImage AppRun (a script, not a symlink);
- the Flatpak wrapper in packaging/linux/flatpak-bundle.sh;
- the Arch launcher, and its test;
- and a new launcher inside the flat nightly tar (packaging/linux/nightly-launch.sh), so an
  unpacked tar is isolated too; the archive helper allows exactly that one extra member.

The profile folder is `${XDG_DATA_HOME:-$HOME/.local/share}/vectorcraft-nightly` everywhere:
outside every stable boundary and inside the nightly Flatpak's own sandbox home.

profile_root now accepts the nightly's own Flatpak instance (ai.storyteller.vectorcraft.nightly) and
refuses the stable app's or any other, with a test; before, any FLATPAK_ID was refused, which
PhotoCraft can do and this app cannot.

The nightly CLI is wrapped again: it stays in /usr/lib/vectorcraft-nightly and a
vectorcraft-nightly-cli wrapper exports the VECTORCRAFT_CONFIG_DIR the CLI honours, so it no longer
reads the stable profile.

nightly-common.sh now requires exactly `VectorCraft <version> (nightly-v1)` rather than a bare
`vectorcraft ` prefix, so a stable or wrong-identity binary fails the build.

Already right here: the window class matches the nightly desktop entry (os_window::app_id), the
nightly metainfo declares no mediatypes, the nightly build needs no extra features, and
sonar.coverage.exclusions already covers packaging/**.

Co-authored-by: dylanmtaylor <dylan@dylanmtaylor.com>
Co-authored-by: skylartaylor <skylartaylor@users.noreply.github.com>
2026-11-24 23:01:15 +01:00
Dylan M. Taylor fd74243a06 fix(packaging): fix actionlint concurrency key and address review comments
- Remove invalid 'queue: max' key from .github/workflows/nightly-sign.yml
  concurrency block (fixing actionlint syntax-check) and update
  packaging/nightly-release-tests.py accordingly.
- Preserve explicitly empty VECTORCRAFT_CONFIG_DIR='' in Linux deb/rpm,
  AppImage, Arch, and Flatpak wrappers by checking unset state with +x,
  and add an empty-override test case to nightly-arch-tar-test.sh.
- Include '-nightly' in BASENAME for channel-only Nightly builds so
  AppImage/zsync artifact names match the Nightly UPDATE_INFO pattern.
2026-11-24 14:21:45 -05:00
Dylan M. Taylor 5b4ffa920d packaging(linux): support co-installable nightly packages 2026-11-24 13:33:52 -05:00
Dylan M. Taylor d26dd933a7 packaging(flatpak): add OCI image build and GHCR publishing helper (#4987) 2026-10-31 18:53:15 -04:00
Dylan M. Taylor c6e6c23b99 packaging: use [[ for bash conditional tests (SonarCloud S7688) (#3853)
SonarCloud flags every bare [ conditional in bash scripts under packaging/ as a reliability smell (rule S7688). Convert the flagged [ ... ] tests to [[ ... ]]: safer word-splitting and no glob surprises, same semantics for these string and file tests.
2026-10-23 13:21:42 -04:00
Brandon Thomas 73bf92b5a9 Release: Flatpak bundles, AppImage zsync updates, README Downloads (#500)
* Release: Flatpak x86_64/aarch64 bundles, AppImage zsync updates, README Downloads

- New `flatpak` matrix job (ubuntu-24.04 and ubuntu-24.04-arm) repackages each Linux tarball
  into vectorcraft-<ver>-linux-<arch>.flatpak via packaging/linux/flatpak-bundle.sh and the
  new ai.storyteller.vectorcraft.bundle.yml; packaging-lint keeps its runtime and finish-args
  identical to the from-source Flathub manifest.
- AppImages embed gh-releases-zsync update information and ship a .zsync beside them; the
  Linux job checks both.
- Jobs that sign nothing (version, linux, flatpak, freebsd, web) leave the `release`
  environment, so a branch workflow_dispatch is a dry run; the draft-release job still needs
  the signed macOS/Windows jobs.
- README: a Downloads section listing every build; docs/releasing.md updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Release: read AppImage update info without extract-and-run

With APPIMAGE_EXTRACT_AND_RUN=1 the runtime forwards --appimage-updateinformation to the app,
which then tries to open a window and fails on the headless runner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Brandon Thomas <shared2@storyteller.ai>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 10:00:34 -04:00