Commit Graph

72 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 6edf56a893 app(nightly): the isolated nightly-v1 flavor, its Windows and macOS packaging
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>
2026-11-24 22:54:48 +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 a76bfdf9a4 ci(nightly): enable supervised manual nightly runs (port of storytold/photocraft#16594)
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>
2026-11-24 14:15:44 -05:00
BFlat 6f37bd839c VectorCraft on the craft UI framework (#8800)
VectorCraft's UI moves onto the shared craft UI framework in storytold/craft-libs (`next`; the framework side is storytold/craft-libs#2809), as PhotoCraft's did. The app keeps its engine, document model, file formats, commands and automation; its windows, panels, bars, dialogs and canvas are now built and driven by the framework: shell, docking and panels, hosted dialogs, keyboard, focus, IME and pointer routing, and theme tokens.

About 264,000 lines of VectorCraft's own egui UI code are removed and about 154,000 added. craft-libs is pinned at bf62d509f (in `next`), the egui fork at f5025284.

Tests that drove the old UI were rewritten against the port where only their premise changed, with their assertions kept. The UI tests still failing at merge, and their follow-ups, are listed in the pull request.
2026-11-24 08:25:24 +07:00
Dylan M. Taylor 3465b06c38 revert: restore scheduled release.yml dry-run on main (#9184) 2026-11-23 14:45:47 -05:00
Dylan M. Taylor 93bc8da6d7 ci(release): publish scheduled nightly prereleases (#9181) 2026-11-23 13:17:42 -05:00
Dylan M. Taylor 71965b6a42 ci(release): forward ARTCRAFT_SERVICES_DISPATCH_TOKEN secret (#9172) 2026-11-23 09:34:26 -05:00
FredApps 5022ba5593 ci: note the shared SonarCloud archive job cap
The reusable workflow now defaults build-jobs to 2 so a cold instrumented
archive stays within hosted-runner memory (craft-common-actions#333).
2026-11-23 03:21:18 +01:00
dotCooCoo 7f6c5349e0 Merge main into fix/ci-shard-test-build 2026-11-20 05:07:23 -08:00
FredApps 291ea9fd00 ci: build the gate's test binaries without debug info (#8829)
Every gate since 20 Nov 00:38 UTC except one has been stopped mid-link
with "The runner has received a shutdown signal" (exit 143), on main and
on pull requests. Turn on the shared gate's dev-strip input, as photocraft
does, so the ~100 test binaries link without line tables or symbols.

Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 19:41:48 +07:00
dotCooCoo 49be5fb875 CI: the gate builds and runs the tests in five shards
The gate's one job builds all 106 test binaries on a 4-CPU, 16 GB runner,
and it is often stopped with exit code 143 ("The runner has received a
shutdown signal") during that build. ci.yml now runs the gate as five
legs:

- Shards 1 to 4 run `cargo xtask ci shard`, which builds and runs the
  tests and doctests of its own crates: ui-egui, engine, the apps with
  mcp and xtask, and every other crate.
- Shard 5 runs the other `cargo xtask ci` steps.
- On pushes to main, a `cache warm` leg runs `cargo xtask ci warm`,
  which builds what every shard builds and saves the dependency cache.

`gate (ubuntu-24.04)` passes only when all five legs passed.
`cargo xtask ci` with no argument runs every step, as before.

`cargo xtask shards` lists each shard's crates. It fails when a crate
named in xtask/src/shards.rs is not a workspace member or is named
twice, and when a crate builds with other features in its shard than in
`cargo test --workspace`. Every shard runs it first. vectorcraft-affinity
and vectorcraft-pdf now turn on `synth` and `read-count` in their own
dev-dependencies, which vectorcraft-engine's dev-dependencies turned on
before. Without that, 39 tests of affinity's `it` binary do not build in
a shard without the engine.

The gate also sets dev-debug "0" and dev-strip: true, so the workspace
crates build without line tables and the test binaries without debug
info or symbols.
2026-11-20 01:56:01 -08:00
FredApps 8f8956f385 CI: FreeBSD builds one crate at a time (the nightly run is killed for memory) (#7636)
* CI: FreeBSD builds with two jobs

The nightly FreeBSD run has been killed for memory (exit 137) while
compiling the workspace's test targets, on both architectures, every
night since at least 9 November. Two rustc processes at a time fit in
the VM's 12 GB.

* CI: one FreeBSD build job at a time

With two jobs the engine and ui-egui test builds were still killed when
they compiled together.
2026-11-14 23:35:26 +01:00
FredApps e8c7421a3d CI: shared gate for the Affinity corpus; drop release's git-sources copy (#6683)
affinity-corpus.yml ran a local job; it now calls craft-common-actions
gate.yml with the same toolchain (1.95), environment and commands, and a
cache of its own. release.yml's git-sources copy is removed: the shared
release.yml runs the same check before any build.
2026-11-13 15:01:22 +01:00
FredApps 7f3a046b18 CI: nightly release dry run (#6678)
release.yml also runs nightly on main with craft-common-actions' dry-run: every release build
except macOS, with nothing signed, pushed or drafted. Breakage that only the release build hits
(riscv64, Flatpak, FreeBSD, packaging) then shows up the next morning instead of on release
day, as it did on 11 Nov 2026.
2026-11-11 23:04:49 +01:00
Dylan M. Taylor 8e8b43f045 ci: use StepSecurity's maintained actions (#6658)
Each third-party action that StepSecurity publishes a secure drop-in
replacement for now uses that replacement, pinned to a commit with its
version as a comment. Versions follow what we used: the newest
StepSecurity release in the same major, or the closest major they
publish. dtolnay/rust-toolchain refs that named a toolchain (stable,
nightly, 1.76) become the replacement's `toolchain` input.
2026-11-11 16:02:52 -05:00
Dylan M. Taylor a07e05a207 ci: run Harden-Runner on every job (#6629)
Adds step-security/harden-runner (audit, pinned to v2.22.4 like
craft-common-actions) as the first step of each job that did not have it,
so every workflow in the org's public repos reports its egress to
StepSecurity. Audit, not block: block-mode allow lists come from each
job's observed traffic.
2026-11-11 12:42:58 -05:00
Luis 21249399c6 Release: refresh contributor credits for each release (#5997) (#5998)
About > Contributors still showed an old snapshot, because nothing
regenerated contributors/contributors.json before a release. Opt in to
the shared refresh from craft-common-actions: a read-only credits job
regenerates the snapshot for the release commit, and the shared release
workflow installs it before every source build. The snapshot is not
committed back.
2026-11-08 02:07:42 +01:00
FredApps aabefa3a20 Copy the shared house rules into AGENTS.md.
The blocks come from craft-contrib at dde09ea31e2e457f5b4653a6e76f7cdf55944bdf. CLAUDE.md imports AGENTS.md. The house-rules workflow checks the copy.
2026-11-06 11:50:02 +01:00
Dylan M. Taylor 632cb9d649 Pass the Linux signing key to the release workflow (#5702) 2026-11-04 17:45:03 -05:00
FredApps 05d5f99fd7 ci: run the desktop printing check through the shared gate (#5062)
* ci: run the desktop printing check through the shared gate

print.yml ran its own Windows job, which the CI workflow rules phase out, and each PR saved its
own ~1.3 GB cache. The same commands now run through craft-common-actions' gate.yml on
windows-2022, without craft-fonts, nextest or the wasm target as before. The gate never saves
from a pull request; a manual run on main seeds the cache. storytold/craft-common-actions#118.

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

* ci: call the shared gate at main

storytold/craft-common-actions#119 is merged, so main's gate takes an empty packages list.

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

---------

Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 10:55:12 +01:00
Dylan M. Taylor 469c7a421e ci: grant packages write permission to release workflow 2026-10-31 23:43:01 -04:00
Dylan M. Taylor c733ae97f0 CI: workflows only call craft-common-actions at @main (#4656)
AGENTS.md (and CLAUDE.md where present) gets a CI workflows section: workflows only call
craft-common-actions at @main, with no other jobs; feature and fix PRs don't touch CI and
link or open a craft-common-actions issue (a PR only for a small fix that is safe for
every app and does not increase CI time); legacy jobs
aren't added to and move only as their own task, staying until a shared workflow runs them.

windows-arm64.yml moves from its SHA pin to @main. The pinned revision is on
craft-common-actions main and the workflow (and the actions it calls) is identical
there, so nothing changes in behaviour.
2026-10-29 22:36:34 -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
aiongg 9997ff0215 ci: run the printps tests under their moved path and fail when none run (#4305)
The module layout moved tests_printps to tests::printps, so the print
workflow's filter matched nothing and the step passed with 0 tests.
2026-10-27 21:09:33 -04:00
aiongg 28b5b9249c ci: use storytold/craft-common-actions at the merged installer-policy commit 2026-10-27 20:52:02 +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 fafab0d822 ci: follow tests_printps.rs to tests/printps.rs in the print workflow path filters 2026-10-26 22:01:25 +00:00
skylartaylor 340e3495d8 egui037: migrate VectorCraft UI and reconcile current main 2026-10-25 03:27:29 +01:00
Brandon Thomas 8b2d3aefa5 Merge pull request #3812 from storytold/dependabot/github_actions/actions-6dcc66fbd4
ci(deps): bump Swatinem/rust-cache from 2.9.2 to 2.9.3 in the actions group
2026-10-24 10:21:03 -04:00
Dylan M. Taylor 76467a1a9b ci: move release workflow write permission to job level (SonarCloud S8233) (#3928) 2026-10-23 22:37:12 -04:00
aiongg c204d8959e CI: run the gate through craft-common-actions' shared gate.yml; FreeBSD nightly and on release (#3772)
ci.yml is new: it calls the shared workflow (cached apt packages, nextest, main-only cache saves, Cargo.lock check). FreeBSD and Windows ARM64 run nightly and on pushes to release instead of on pull requests. Depends on storytold/craft-common-actions#69.
2026-10-23 20:59:43 -04:00
aiongg 6877d6535f Links: resolve stored paths with craft-docpath's resolve_absolute (#3267)
* Links: use resolve_absolute for stored paths

* CI: release only with git dependencies from storytold

* Release: check git sources from the parsed Cargo.lock and cargo config

The grep let any character stand for the dot in github.com, passed a missing or stale
Cargo.lock, and missed source replacement in .cargo/config.
2026-10-23 17:51:28 -04:00
Dylan M. Taylor c4fba30b9c ci(sonar): don't cancel superseded runs on main, so coverage is published (#3881) 2026-10-23 16:51:11 -04:00
dependabot[bot] d87207ec0f ci(deps): bump Swatinem/rust-cache
Bumps the actions group with 1 update: [Swatinem/rust-cache](https://github.com/swatinem/rust-cache).


Updates `Swatinem/rust-cache` from 2.9.2 to 2.9.3
- [Release notes](https://github.com/swatinem/rust-cache/releases)
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md)
- [Commits](https://github.com/swatinem/rust-cache/compare/6323deb102c322ba6fcbdcafc7e3dddab59af2b6...d1527c8f67ef9af357290475d4af4b0fab8f12e0)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-version: 2.9.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-23 10:06:22 +00:00
Dylan M. Taylor a4c21343bb ci: add SonarCloud scan via shared reusable workflow
Calls storytold/craft-common-actions/.github/workflows/sonarcloud.yml@main
with secrets: inherit. Adds SonarCloud badge to README where missing and
removes the redundant sonar-project.properties (config now passed by the
reusable workflow).
2026-10-21 15:47:07 -04:00
Davit Matchakhelidze fc594b51ee Release: build the web version with craft-fonts too (web-craft-fonts)
Without it the shared release workflow builds the web release without CRAFT_FONTS_DIR, so
web-fonts.txt's startup faces (Arabic, Thai, Georgian) are not served (CodeRabbit review).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YMTAbGNRxnMEzRvYnQGphF
2026-10-18 20:29:04 +04:00
Davit Matchakhelidze 25a987a94f Release: embed the current craft-fonts (adds Noto Sans Georgian, craft-fonts#27)
The release and FreeBSD workflows pinned craft-fonts 3d9ab3a1, two commits before #27,
so release builds had no Georgian face for the ka interface.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YMTAbGNRxnMEzRvYnQGphF
2026-10-18 16:09:28 +04:00
Dylan M. Taylor e9edc49977 ci: switch to shared nix workflow from craft-common-actions 2026-10-16 14:57:18 +07:00
Dylan M. Taylor f9092edfe3 ci: standardize FreeBSD workflow on shared FreeBSD 15.1 action 2026-10-16 14:57:17 +07:00
skylartaylor 2fa10c957c ci: retain VectorCraft package and release checks 2026-10-16 05:43:40 +02:00
Dylan M. Taylor f08f3619e3 ci: refactor workflows to use storytold/craft-common-actions and add nix check 2026-10-15 21:38:50 -04:00
skylar taylor-barrick 0946bc5b74 ci: add comfortable runtime limits to unbounded jobs (#2077)
Co-authored-by: skylartaylor <26588250+skylartaylor@users.noreply.github.com>
2026-10-15 05:16:14 +02:00
skylar taylor-barrick e74c2f113c Print: adopt craft-print while retaining Windows 7 support 2026-10-12 14:20:48 +07:00
Dylan M. Taylor c28a9b5dd2 ci: upgrade actions to Node 24 to fix deprecation warnings 2026-10-11 21:42:27 -04:00
bflatastic 947b294f87 Release: embed the current craft-fonts (Thai, Arabic, Chinese)
Releases pinned craft-fonts at its first commit, with the Japanese fonts
only. The pin moves to its current main, as PdfCraft, LightCraft and
WordCraft have moved theirs: desktop builds embed Noto Sans Thai, Noto
Sans Arabic and Noto Sans CJK SC too (the web build still embeds only
the UI font and fetches Thai and Arabic beside the wasm). Packages
already copy every embedded font's licence.

The Thai loanword test no longer assumes the bundled fonts' widths: it
checks that no line ends inside โปรแกรม, whichever Thai font sets it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 20:47:46 +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
Dylan M. Taylor 4f0809953d chore: bump github actions to fix Node 20 deprecation warnings 2026-10-09 20:04:42 -04:00