A handled startup error is a controlled return: only a caught panic keeps the
Nightly session record (finish_after(outcome.is_ok())), and the unclean-session
notice no longer replaces a graphics, plug-in or hang message that is already up.
The profile fences cover HOME's own XDG folders when an override moves the
effective ones, a dangling stable entry point keeps its fence instead of
refusing every launch, and an empty VECTORCRAFT_NO_PREFS is refused as the app
treats it. The recovery store refuses to write through a linked entry, as it
already refused to read one.
The Arch handoff stages the GUI in the hidden folder and leaves the launcher in
place; the launcher answers a version, help or Launcher query before it needs a
profile root; the archive collision test follows the volume's case rule; the
Windows nightly copies ASSETS.md, builds into the target folder it then reads,
and the stable packager refuses an executable with no stable VERSIONINFO; the
macOS signing fixtures name no credential and no /tmp.
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).
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>
- 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.
* packaging: Flatpak finds and prints to CUPS printers
The Print dialog listed no printers in the Flatpak: the runtime has libcups but not
lpstat/lp, the sandbox couldn't reach the CUPS socket, and driverless network printers
(lpstat -e) need Avahi. Bundle lpstat/lp/lpoptions from CUPS 2.4.20 (Apache-2.0,
statically linked, licence installed) and grant --socket=cups and
--system-talk-name=org.freedesktop.Avahi in both manifests.
* packaging: Flatpak reads the user's CUPS settings (~/.cups, read-only)
Review (CodeRabbit): without it the sandbox's lp/lpstat ignore the user's default
printer and saved options (lpoptions) and a print server named in their client.conf.
* packaging: Flatpak CUPS tools reach the host socket when client.conf names a custom path
Review: Flatpak mounts the host's CUPS socket at /var/run/cups/cups.sock whatever
path ~/.cups/client.conf or CUPS_SERVER names, so lp/lpstat/lpoptions now run through
a wrapper that points a socket path missing in the sandbox there. Server names
(remote servers) and sockets that exist are left alone. Tested in the sandbox:
CUPS_SERVER=/run/custom/cups.sock lists the host's printers through the wrapper and
none without it; a host name is passed through unchanged.
* packaging: redirect a custom CUPS socket only when it is the one Flatpak mounted
Review (CodeRabbit): Flatpak picks the socket it mounts at /var/run/cups/cups.sock
with stricter rules than CUPS (flatpak-run-cups.c: a socket CUPS_SERVER, else the
first line spelled exactly "ServerName /path" in ~/.cups/client.conf, else the
default), while CUPS reads the keyword in any case and takes the last ServerName. The
wrapper now redirects only when CUPS' socket is the one Flatpak chose, so a job can't
reach a different server; otherwise CUPS fails on the missing path.
* packaging: never redirect a CUPS_SERVER the sandbox was given
Review (CodeRabbit): Flatpak picks the socket it mounts from the host's CUPS_SERVER,
so one set by flatpak run --env or an override may not be what it mounted. The
wrapper now leaves any CUPS_SERVER alone and redirects only a client.conf socket that
matches Flatpak's choice; otherwise CUPS fails on the missing path instead of
reaching a different server.
* packaging: point CUPS at the mounted socket only when it is the one Flatpak chose, else fail
Review (CodeRabbit): with a custom socket listed first and the default last in
~/.cups/client.conf, Flatpak mounts the custom one at /var/run/cups/cups.sock while
CUPS picks the last line, finds that path, and talks to the custom server. The
wrapper now compares CUPS' socket with Flatpak's choice even when the path exists:
equal, CUPS is pointed at the mount; different, the tool fails with an error instead
of reaching another server.
- packaging/linux/package.sh: one verify_sha256 helper replaces the four
repeated printf|sha256sum -c pipelines.
- packaging/macos/package.sh: stapler_retry copies its positional
arguments into locals before use.
- swatch_options: f64::from(v) instead of v as f64 (same value; the
argument is an f32, so the conversion stays).
* Packaging: pin the Windows signing client and check its hash
* Packaging: pin appimagetool and check its hash
* Packaging: pin the AppImage runtime, and stop clearly without a pinned hash
appimagetool otherwise embeds the unpinned type2-runtime continuous build. An
architecture with no pinned tool or runtime now exits with a message instead of
failing the hash check on an empty hash.
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.
Flatpak opens only /usr/share/fonts and ~/.local/share/fonts to a sandbox, so the
fonts a font manager such as FontBase activates into ~/.fonts were missing from the
font list while native apps showed them. Granted read-only: VectorCraft only reads
fonts.
Verified on the 0.11.0 release bundle by applying the same grant as a user override
(`flatpak override --user --filesystem=~/.fonts:ro`): in a fresh sandbox the FontBase
families went from none to all 167, `fc-match` resolved a family that had been missing
from the app, and the font then appeared in the font list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#1290 (from #1275) declared the glibc floor as `libc.so.6(GLIBC_2.35)(64bit)`. That doesn't stop
RHEL 9: its current glibc, `2.34-283.el9_8`, provides `libc.so.6(GLIBC_2.35)` through backports. On
Rocky Linux 9, dnf upgrades glibc to that build, installs VectorCraft 0.10.0, and `vectorcraft-cli`
then fails with ``/lib64/libm.so.6: version `GLIBC_2.35' not found``. The binaries' only GLIBC_2.35
symbols are `hypot` and `hypotf`, from libm, and RHEL 9 doesn't provide `libm.so.6(GLIBC_2.35)`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Version 0.8.0 -> 0.9.0 (cargo xtask version set; Cargo.lock refreshed).
- release.yml: new linux-riscv64 job, ported from GridCraft. Cross-compiles
riscv64gc-unknown-linux-gnu on ubuntu-24.04 against riscv64 -dev packages
from ports.ubuntu.com (the same set the linux job installs), packages a
tar.gz, and runs vectorcraft-cli --version under qemu-riscv64. The draft
release job now needs it, so its tarball is uploaded and in SHA256SUMS.
- packaging/linux/package.sh: CROSS_ARCH / CROSS_TARGET / CROSS_COMPILE /
EMULATOR support, as in GridCraft.
- docs/releasing.md: list the riscv64 artifact.
Checked locally: cargo check -p vectorcraft -p vectorcraft-cli --target
riscv64gc-unknown-linux-gnu, cargo fmt --check, actionlint, shellcheck.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* 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>
Drop the file types and wording carried over from the sibling raster
editor: the macOS exported type now declares .vectorcraft/.drawcraft
(was .pcraft) and the raster imported types (large raster documents, QOI)
are gone; the dev bundle's PDF type is "PDF Document"; Linux categories and
keywords say vector graphics (no trademark keyword), the AppStream
description and screenshot show VectorCraft, and the deb/rpm, MSI and web
embedding descriptions say vector illustration app. File associations stay
as they are. An xtask test rejects raster-editor wording in packaging/.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>