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.
- `nightly_compile_gui` calls `nightly_refuse_signing_env` before cargo, so an exported signing
key cannot reach the compiler or any dependency build script. The helper existed but no path
called it.
- Drop the Sonar issue-scope helper and its fixture that 6b38347326 carried: they assert a policy
contract the installed policy does not meet, and the policy is reviewed separately, so the suite
must not decide it here. The push-block helper and its fixture stay.
The push: assertion matched contiguous four-space lines, so a path filter after a blank
line (still inside the mapping) escaped it. It now walks the block by indentation and rejects
paths and paths-ignore, with a test for the blank-line case. Carried over from the batch-1
review work in this worktree; the suite passes here (21 tests).
The repo's own packaging guard (xtask bundle::tests::packaging_describes_a_vector_app)
refuses raster-editor wording anywhere under packaging/, and the nightly signing tests used
`photocraft-signing.keychain-db` to stand for another app's keychain. The fixture is
`another-app-signing.keychain-db`; the assertion is unchanged (only
`vectorcraft-signing.keychain-db` is this run's).
shellcheck reads `A && B || C` as a possible false branch: C may run when A is true.
The check and its refusal are now an explicit `if`, with the same behaviour and message.
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>
Ports PhotoCraft's nightly flavor into VectorCraft, on top of Dylan Taylor's Linux
packaging (#9233), and credits him there.
Build side: VECTORCRAFT_BUILD_CHANNEL=nightly-v1 emits cfg(vectorcraft_nightly_v1);
build.rs embeds the exact feed identity (VECTORCRAFT_VERSION, or the
VECTORCRAFT_OVERRIDE_VERSION this repository's packaging already passes) as
VECTORCRAFT_BUILT_VERSION, with the nightly icon, ProductName "VectorCraft Nightly"
and ProductVersion for the Launcher's check.
Launch side: prepare_launch() is the first thing main does. It answers --version, -V
and the Launcher form (--launch-profile nightly-v1 --profile-root <abs> --version) with
"VectorCraft <version> (nightly-v1)" before root validation, logging, IPC or any
window; parses the strict selector/root protocol; refuses a nightly without a profile
and a stable build with one; sets the Windows AUMID and the window identity
(ai.storyteller.vectorcraft.nightly-v1); and installs the private data root.
Isolation: profile::install_data_root makes the validated profile the one folder every
data path follows - config.toml, logs, hang reports, the GPU start record, Data
Recovery, plug-ins, fonts, the user's libraries, script data, PDF presets, the
single-instance record - and the nightly alone gets eframe's persistence_path and the
framework's window.json inside it. profile_root fences the profile off every stable
folder, the installation, a portable copy and the shared env overrides on each OS.
The updater, the control channel and the automation roots stay off; a nightly session
record reports an unclean exit once and is finished on on_exit (the macOS Cmd+Q path);
a hand-off child inherits the profile.
Packaging: packaging/windows/nightly.ps1 with the -Nightly/-BuildOnly hook,
the stable refusal of a nightly executable, sign.ps1 -Required/-CheckOnly/
-CheckBuildEnvironment, and their PowerShell suites; packaging/macos/nightly.sh,
nightly-lib.sh, nightly-sign.sh, nightly-verify.sh and nightly_plist.py with their
tests; nightly art (deeper field, unchanged figure) from the committed tile;
nightly_paths.py and the archive tests for the Linux helper; a doc section; and
nightly-check.yml (synthetic + Windows suites) and nightly-macos.yml (full-ci).
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.
Ports Skylar's (@skylartaylor) storytold/photocraft#16594 into VectorCraft:
- Add .github/nightly-signing-policy.json (v3 policy adapted for storytold/vectorcraft,
CI workflow 380135806, and SonarCloud project storytold_vectorcraft; producer_workflow_id
left null until nightly.yml is registered on main)
- Add .github/workflows/nightly.yml and .github/workflows/nightly-sign.yml pinned to
storytold/craft-common-actions@605d58766e for supervised
manual workflow_dispatch runs by the reviewed release-managers list
- Add docs/nightly-release-preparation.md and packaging/nightly-release-tests.py
Credit: @skylartaylor (storytold/photocraft#16594)
Co-authored-by: skylartaylor <hi@skylar.cc>
* 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.
Drop the unsupported Windows 7 x64 portable build and everything that existed only for it:
the windows7 workflow, packaging script and docs/windows7.md; the windows7 feature and the
win7-target cfgs (plain cfg(windows) now); the Windows 7 print transport
(printing/windows7.rs); the glow renderer path; and vendor/windows-link, the patched crate
only that build used. NOTICE, README and the living docs no longer describe it; dated
change-history rows are left as they were.
The shared release workflow cross-compiles FreeBSD aarch64 from an x86_64 VM by
setting CARGO_BUILD_TARGET. package.sh ignored it: it took the arch from uname -m
(the host, x86_64), read binaries from target/release, and ran the cross-built
binary to print its version. Pass --target, read from target/<triple>/release,
take the arch from the target, and skip the version run when cross-built.
The policy check now reads the compiled AppSearch and RegLocator rows for the
remembered-folder properties (registry root, key, value name and type for both
scopes) and runs the DIR, FOLDER, PATH and legacy exe actions in sequence order
against seeded values, so their precedence and the preset-folder guard cannot
regress. It also replays the wizard folder actions in sequence order (a
remembered folder beats the new-install default, a typed folder beats both) and
requires the machine restore action between the scope page and costing.
The pre-signing check matched any folder named Program Files, so it rejected
a valid MSI when Windows resolves Program Files elsewhere, accepted the 64-bit
root for an x86 package and accepted a different app name. Build the expected
folder from the package architecture's resolved root and the policy name.
Real msiexec runs (per-user and all-users, silent and wizard) found two defects
that the metadata fixtures cannot see:
- "Only for me" published ALLUSERS=2, so FindRelatedProducts treated the run as
per-machine and skipped the existing per-user copy. An interactive upgrade
left two registered products and uninstall left files behind. The page now
leaves ALLUSERS unset for a per-user choice.
- Windows Installer resolves Program Files once, for the context it started in,
so choosing "Everyone" in the wizard installed into the user profile with a
machine-wide registration. The wizard now sets the new-install folder itself
after the choice (Program Files, Program Files (x86) for 32-bit, or the
per-user Programs folder). Silent installs are unchanged.
check-install-policy.ps1 now fails if either regresses.
- 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).
* Audit: private temp paths for the signing certificate and testkit output; confine web font licences to the checkout
* testkit: refuse a pre-made private temp directory this user cannot write to
* 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.
0.13.0's macOS release job failed twice at `stapler validate` right after a successful notarization
and staple: the CloudKit ticket lookup lost its connection (NSURLErrorDomain -1005, Error 68). Retry
the validate up to four times with a growing pause; a missing or bad ticket still fails.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>