Commit Graph
81 Commits
Author SHA1 Message Date
dotCooCoo b12c27e518 Linux: file managers show thumbnails of VectorCraft documents
The deb, rpm and tar.gz packages install
share/thumbnailers/ai.storyteller.vectorcraft.thumbnailer for
application/x-vectorcraft and application/x-vectorcraft-template. It runs
the new `vectorcraft-cli thumbnail --size N IN OUT`, which opens the
document as the app does and writes an 8-bit RGBA PNG of the first
artboard, N pixels (1 to 1024, default 256) on its longer side.

A file larger than 256 MiB, one that can't be opened, a document that
shows nothing, or a run longer than 20 seconds writes no PNG and exits
non-zero, so the file manager keeps the file's icon. The Nightly deb and
rpm leave the entry out, as they leave out the MIME package.

The render moves into vectorcraft_render::encode::first_artboard, which
the embedded native preview also uses.
2026-11-28 02:39:17 -08:00
dotCooCoo 64eb88e604 Plug-ins: web worker runs end on failure, deadline and automation as on the page
- A panic while a held run's output is applied ends the run, so the
  documents go back to their state before it, and ending a held run
  drops the output handed in for it.
- The worker loads a plug-in with the limits the page sends with the
  run, so its memory limit applies.
- A worker that is ready only after the run's deadline is not sent the
  run, with or without a dialog open.
- A run that holds the documents and fails while a dialog is open ends
  at once and frees them.
- A plug-in command's dialog that automation confirms runs the command
  on the page and returns its result.
- A plug-in file opened or dropped on the web whose worker check fails
  is reported in the Can't open dialog, not only in the status bar.
- The web README lists connect-src among the CSP directives the app
  needs.
2026-11-27 18:39:30 -08:00
dotCooCoo 239d7ff61f Block mutating queries during held plugin runs 2026-11-26 11:27:37 -08:00
dotCooCoo 93b7a9c627 Merge main into feat/plugins-web-worker 2026-11-26 10:32:00 -08:00
dotCooCoo dc333ada97 Merge main into feat/plugins-web-worker
Worker completion preserves unapplied typing and discards stale output.
2026-11-26 10:21:21 -08:00
skylar taylor-barrick 3463266b27 Switch on supervised nightlies on the nightly-signer branch (#9342)
Supervised nightly switch-on, merged under Skylar's explicit Nightly 758 override after green CI, CodeRabbit on this head with no open threads, Sonar passing, and an independent adversarial review with no blockers.

Merge-only delta: CodeRabbit reviewed 91c7634e, the last authored head; this head adds only a merge of main, so its CodeRabbit check is a skip.
2026-11-25 23:58:45 -06:00
dotCooCoo cb1361c889 Merge main into feat/plugins-web-worker 2026-11-25 18:45:04 -08:00
dotCooCoo 0e701ffc1a Merge main into feat/plugins-web-worker 2026-11-25 14:21:03 -08:00
skylar taylor-barrick 016ead2572 Use the shared nightly launcher template (#9316)
Renders the plain nightly tar's launcher from craft-common-actions' shared template.

Independent check: dylanmtaylor compared all 14 app launcher PRs byte for byte with the template rendered from the registry (https://github.com/storytold/craft-common-actions/pull/367#issuecomment-7172085284); this head was re-checked against craft-common-actions main 88148a5.
2026-11-25 16:17:47 -06:00
Dylan M. Taylor 8b0b808857 packaging(linux): support co-installable nightly packages (#9233)
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch.

gate test shard 1/5 (and the Sonar scan that reads its coverage) fails on crates/ui-egui/src/doc_windows/tests.rs `a_document_made_current_in_presentation_mode_comes_to_the_front_after_it`, which main fails too (CI run 45581083304); this PR touches no ui-egui code.

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-25 06:01:37 -06:00
dotCooCoo cff9f3dcbe Docs: the start-up script's CSP hash goes in script-src-elem when set
A policy that sets script-src-elem governs the inline start-up script,
so its hash belongs there instead of in script-src.
2026-11-22 14:04:20 -08:00
dotCooCoo e2c2776655 Plug-ins: a failed install check ends while a run holds the documents
A check whose module fails in the worker now ends at once while a dialog
is open, a run holds the documents or a script runs: its worker is
terminated and the status bar says why. Only a checked install waits.

packaging/web/README.md lists everything a Content Security Policy must
allow: the inline start-up script Trunk writes into index.html,
'wasm-unsafe-eval' for WebAssembly, and the plug-in worker.
2026-11-22 13:25:43 -08:00
dotCooCoo d998e7245d Plug-ins: web worker runs hold the documents safely and end on time
- A run that holds the documents applies its output only through the
  command and params it was started with, and one that ends without
  changing a document keeps that document's revision, so another worker
  run on it still applies.
- Clipboard imports are refused while a run holds the documents, and
  recovery copies wait until the run ends.
- A command call waiting under a dialog no longer keeps a run past its
  time budget, and a run whose document changed stops while a dialog is
  open too.
- A checked install waits for the run that holds the documents, and the
  progress window shows that run first.
- While a script runs, worker runs still get their requests, Cancel and
  their time budgets still end them, and no new worker run starts.
- Command call arguments and answers travel in blobs of their own, so
  they nest as deep as a JSON parse allows; the worker protocol is 2.
- docs/plugins.md and packaging/web/README.md scope the off-page runs,
  document the first ui.installPlugin reply, the start-up time in the
  budget, and the CSP fallback through child-src.
2026-11-22 12:37:28 -08:00
dotCooCoo 82e3d6dac3 Plug-ins: the web build checks plug-ins and runs filters in a Web Worker
On the web, a plug-in being installed ran its start function and
vc_manifest on the page, and a filter ran on the page for its whole
budget, so a slow or looping module froze the tab for up to a minute
(five for a heavy filter), and Cancel could not stop it.

- A second wasm, apps/vectorcraft-plugin-worker, is built by Trunk as a
  worker (data-type="worker" with data-loader-shim in index.html). The
  page starts one worker for each check and each run, and terminates it
  on Cancel, when the document or the plug-in changes, and 5 s past the
  run's time budget, also while a dialog is open. Each worker's inbox
  holds its latest progress report and at most 8 other messages.
- crates/plugins/src/worker.rs holds the messages and the worker's
  side. Runs can pause at each vc_call (Plugin::begin_run and
  resume_run), which the desktop's synchronous calls now use too.
- Install Plug-in... and File > Open check a module in a worker first;
  the page then loads it with Plugin::load_checked, which runs none of
  its code.
- A filter that calls commands sends each call to the page. The session
  holds the run's undo step open and refuses other edits with "a
  plug-in is running: cancel it or wait for it to finish" until the run
  ends; the progress window shows at once with Cancel only.
- On the web every filter and plug-in command started from the menus
  or their dialogs runs in a worker, and the dialogs have no Preview.
  A plug-in command applies as itself, one undo step named after it.
  Commands that automation runs directly still run where they are
  called and return their result.
- packaging/web: the worker files carry no hash, so the sample cache
  rules make only the hashed app files immutable.
2026-11-22 10:15:28 -08: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
vangel76andClaude Sonnet 5.5 c95d711d4b Web: document the browser minimums the SIMD build needs (#2786)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 00:45:25 +01: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 ThomasandClaude Opus 5.5 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 cc3ca69d50 Remove the experimental Windows 7 build
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.
2026-10-28 17:57:17 -04:00
Dylan M. Taylor 56804f6d7e packaging: honor CARGO_BUILD_TARGET in FreeBSD package.sh (#4487)
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.
2026-10-28 15:48:05 -04:00
Dylan M. Taylor ed960ef1f1 Grant network access so update checks can reach GitHub (#4482) 2026-10-28 13:07:32 -04:00
Jeremy ddf9845a27 test(installer): cover the compiled folder searches, resolver chains and wizard folder replay
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.
2026-10-27 21:13:29 +00:00
Jeremy 1440538ab6 fix(installer): check the exact architecture-specific machine folder
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.
2026-10-27 19:08:52 +00:00
Jeremy d5aeea632e fix(installer): resolve the wizard scope and folder correctly
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.
2026-10-27 15:32:39 +00:00
Jeremy 85250cd220 fix(installer): harden install-policy checks and packaging-lint workflow 2026-10-27 12:01:53 +00:00
Jeremy 921426bf56 fix(installer): address scope and ARM64 review feedback 2026-10-27 12:01:53 +00:00
Jeremy 9348aadb9f feat(installer): default to a per-user ArtCraft folder 2026-10-27 12:01:53 +00:00
aiongg e724228e25 docs: update source paths for the moved files 2026-10-26 22:01:25 +00:00
Florent Siegenthaler a8345dcfb1 Declare the UI languages to AppKit so the open and save panels are translated 2026-10-26 15:28:39 +07: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
Dylan M. Taylor dad86afeee Security: private temp paths for the signing certificate and test output; web font licences stay inside the checkout (#3871)
* 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
2026-10-23 21:52:17 -04: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
Brandon ThomasandClaude Opus 5.5 b04105ebc6 macOS packaging: retry stapler staple, not just validate, when CloudKit drops the connection
Release 0.16.0's macOS job failed with Error 68 in `stapler staple`, which
had no retry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 20:35:50 -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
Brandon ThomasandClaude Opus 5.5 904f0fe522 Release 0.13.1: retry stapler validate on Apple network errors
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>
2026-10-18 00:00:06 -04:00
vangel76andClaude Opus 5.5 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
Marco Arnulfo 830dea80e0 Docs: where the portable marker goes on macOS, AppImage and Flatpak; keep a portable copy where only you can write (#1366) 2026-10-16 15:27:55 +07:00
Marco Arnulfo 314bfe802f Portable mode: a portable.txt beside the executable keeps the settings in VectorCraftData (#1366) 2026-10-16 15:27:55 +07:00
skylartaylor 2fa10c957c ci: retain VectorCraft package and release checks 2026-10-16 05:43:40 +02:00
Ryan WalkerandClaude Opus 5.5 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
tydude001andClaude Opus 5.5 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
skylar taylor-barrick e01a65d8a9 PDF.R1: integrate shared reader with bounded nesting checks 2026-10-13 21:58:01 -06:00