Commit Graph

32 Commits

Author SHA1 Message Date
skylartaylor 4176f92190 nightly: fix the review round for the VectorCraft flavor
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.
2026-11-25 09:33:31 +01:00
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 52d16dea9e packaging: port Linux nightly.sh, nightly-common.sh, and nightly-archive.py from PhotoCraft 2026-11-24 16:18:11 -05:00
Dylan M. Taylor efc9108acc fix(packaging): use # delimiter in nightly desktop Exec= sed rewrite 2026-11-24 15:25:27 -05: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 a971a14898 Fix Flatpak updates and bump to 0.24.1 (#6649)
* fix(flatpak): allow release checks and self-update helpers

* test: keep Flatpak permission parsing within strict Clippy rules

* chore: bump version to 0.24.1 for the Flatpak update fix

* test: locate CLI binaries after Nextest archive relocation

* docs: explain the Flatpak update permission bootstrap
2026-11-11 21:30:40 -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
Brandon Thomas e27f3b9968 Flatpak bundle: skip the debuginfo pass manifest-wide (runner has no eu-strip)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 23:26:30 -04:00
Dylan M. Taylor 4d61f4b2f6 fix(flatpak): allow reading launcher version pins 2026-10-31 05:42:54 +07:00
Dylan M. Taylor a61c912f82 fix(flatpak): allow reading launcher version pins 2026-10-31 05:42:54 +07:00
Dylan M. Taylor 60833ae800 packaging: Flatpak finds and prints to CUPS printers (#4634)
* 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.
2026-10-29 18:51:06 -04:00
Dylan M. Taylor ed960ef1f1 Grant network access so update checks can reach GitHub (#4482) 2026-10-28 13:07:32 -04:00
Dylan M. Taylor 97ccb83337 lint: shell helper and lossless float conversion (S1192, S7679, S4325) (#4205)
- 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).
2026-10-25 22:12:52 -04:00
skylartaylor 340e3495d8 egui037: migrate VectorCraft UI and reconcile current main 2026-10-25 03:27:29 +01:00
aiongg 6757720bba Packaging: pin the signing client and appimagetool, and check their hashes (#3268)
* 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.
2026-10-23 14:06:11 -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
Dylan M. Taylor 2b8a11876a security: enforce HTTPS on curl downloads (SonarCloud S6506) (#3475)
Add --proto '=https' to curl invocations so redirects cannot downgrade to
plaintext HTTP. Resolves SonarCloud S6506 (shell/docker/githubactions).
2026-10-21 19:35:52 -04:00
bflatastic 20557277c2 Packaging: package.sh stays executable (#2268) 2026-10-20 07:34:47 +07:00
Daniel 050f68a030 fix(linux): enable font-free Wayland window controls 2026-10-20 07:34:46 +07:00
dotCooCoo 157679c1a8 Linux: file managers offer VectorCraft for .ai, EPS and every other format Finder offers it for
Squashed from #2821 (its merges of main dropped).
2026-10-19 22:08:38 +07:00
vangel76 743930ac11 Wayland: give winit the desktop cursor theme so the pointer returns over panels (#2450)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 12:50:38 +07:00
Ryan Walker ced45ec157 Flatpak: fonts a font manager activates into ~/.fonts are visible
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>
2026-10-16 05:26:32 +07:00
tydude001 e12a670c40 packaging: RPM glibc floor names libm's GLIBC_2.35, so RHEL 9 refuses it
#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>
2026-10-16 05:26:32 +07:00
Ikki Nishihara 1475a0798d fix(packaging): RPMの依存を共有ライブラリ能力に修正 (#1275) 2026-10-12 07:26:02 +07:00
Brandon Thomas 10f1c56a86 Release prep: 0.9.0 and a Linux riscv64 release build (#1071)
- 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>
2026-10-10 19:47:38 -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
bflatastic 0af38a31fd M4.11: packaging metadata describes a vector illustration app
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>
2026-10-04 11:19:13 +07:00
Brandon Thomas 2d0b055c7e Make ported packaging scripts executable (fixes exit 126)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-02 12:03:30 -04:00
Brandon Thomas da8a14dd04 Signed release pipeline (macOS/Windows/Linux/Web); README community note
Ports photocraft's release workflow + packaging (signing, notarization,
MSI/DMG/deb/rpm/AppImage/web), adds `cargo xtask version`. File-type
associations omitted for now (route B); app keeps its own .desktop. Fresh
WiX UpgradeCode. README 'about' note updated.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-02 11:35:29 -04:00
Brandon Thomas 437320509d app icon: regal engraved dragon (owner's ArtCraft drawing), Dock/taskbar/launcher wiring, palette docs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 09:45:30 -04:00