Commit Graph
69 Commits
Author SHA1 Message Date
skylartaylor f32e247368 fix(nightly): guard the compile boundary and record the shared-workflow port
nightly_compile_gui refuses signing configuration before cargo, so a key
exported by a caller cannot reach the build or its dependency build scripts.

docs/nightly-release-preparation.md records that the pinned shared producer
and signer admit only PhotoCraft, so that port is a go-live prerequisite.
2026-11-25 00:56:52 +01:00
0ce27fe728 packaging(linux): start every Nightly format the flavor's way, and close the port's gaps
Second commit on top of Dylan Taylor's #4154; his commits, names and files stay his.

The Nightly build refuses EFFECTCRAFT_CONFIG_DIR (its state root comes from the Launcher), so his
wrappers, which export that variable, would have been refused at startup. Every one of them now
passes the protocol instead - `--launch-profile nightly-v1 --profile-root <dir> --`:

- the deb/rpm GUI wrapper in packaging/linux/package.sh, plus a wrapper for its headless CLI;
- the AppImage AppRun (a script, not the stable symlink), and its CLI;
- the Flatpak wrapper in packaging/linux/flatpak-bundle.sh;
- the Arch launcher, with its test updated;
- and a new launcher inside the flat Nightly tar (packaging/linux/nightly-launch.sh), which stages
  the GUI as `effectcraft-bin`; the archive helper allows and requires exactly that one extra member.

The profile folder is `${XDG_DATA_HOME:-$HOME/.local/share}/effectcraft-nightly` everywhere: outside
every stable boundary and inside the Nightly Flatpak's own sandbox home. Each launcher passes a
first-argument --version/-V, and an already-supplied --launch-profile, through unchanged, because
after the injected `--` both would be file names.

build.rs now reads EFFECTCRAFT_VERSION and falls back to EFFECTCRAFT_OVERRIDE_VERSION, which is what
this repo's packaging scripts export, so the binary reports the prepared identity and
nightly-common.sh's exact `EffectCraft <version> (nightly-v1)` check can pass.

profile_root accepts exactly the Nightly's own Flatpak instance (ai.storyteller.effectcraft.nightly)
and refuses every other, with a test; before, any FLATPAK_ID was refused and the Nightly Flatpak
could not start inside its own sandbox.

Cargo.lock's effectcraft entry names thiserror and winsafe, which the flavor added to the manifest,
so `cargo check --locked` resolves again.

With his enabled callers kept whole, the flavor's `.github/actionlint.yaml` (a suppression for a
`queue:` key his signer no longer sets) and its `packaging-lint.yml` path entry are gone; nothing in
the tree names `queue:` or the `macos-release` label.

Already right here: the window class matches the Nightly desktop entry's StartupWMClass, the
metainfo declares no mediatypes, the Nightly build needs no extra features, and
sonar.coverage.exclusions already covers packaging/**.

The flavor itself had three compile errors that only a real `cargo check` finds, fixed here: the
user-preset folder asked `effectcraft_host` for the profile root from a crate that does not depend on
it (the UI now carries the profile's `Presets` folder through `channel::set_profile_presets`, set from
`prepare_launch`), `channel::channel_label` was `const` while it reads a non-const atomic identity,
and a test built `"--launch-profile="` with `+` on `&str`s.

Tests: packaging/nightly-tests.py (71 suite tests plus the two Linux launcher argv tests),
bash -n over every changed script, rustfmt --edition 2024 --check on the changed Rust, and
`cargo check --locked -p effectcraft --tests` / `-p effectcraft-cli --tests`, both green locally (with
a check-only alsa.pc, because this host has no libasound outside the Nix dev shell). package.sh was
also rendered with stub binaries and a stub nfpm, and the installed deb tree read back.

Co-authored-by: dylanmtaylor <[email protected]>
Co-authored-by: skylartaylor <[email protected]>
2026-11-24 23:33:37 +01:00
skylartaylor 3a50341d0a nightly: add the isolated EffectCraft Nightly flavor (dormant)
Give EffectCraft the same isolated Nightly channel PhotoCraft has, switched off.

- Launch profile: `--launch-profile nightly-v1 --profile-root <abs> -- [files…]`, with the
  Launcher's version query (`--version`, `-V`) answered before logging, the crash helper, fonts
  or any settings, and `--launch-profile`/`--profile-root` refused by `effectcraft-cli`.
- Build channel: `EFFECTCRAFT_BUILD_CHANNEL=nightly-v1` compiles the flavor, requires the
  prepared `EFFECTCRAFT_VERSION`/`_BUILD_SHA`/`_BUILD_DATE` identity, bakes it in, and sets the
  nightly icon, `ProductName "EffectCraft Nightly"` and the exact `ProductVersion`.
- Private data root: one validated profile root overrides every data root — settings, logs,
  crash reports, plug-ins, presets, window state, recovery sentinel and the disk/media caches —
  fencing stable's folders, the install, portable layouts, `EFFECTCRAFT_CONFIG_DIR` and
  `FLATPAK_ID`, and refusing aliases that leave the profile.
- Session health: a private lease and unclean-exit record, finished once in `on_exit` (macOS)
  and after the event loop.
- Nightly packaging: `packaging/windows/nightly.ps1` plus the `package.ps1 -Nightly/-BuildOnly`
  hook and `sign.ps1 -Required/-CheckOnly/-CheckBuildEnvironment`; `packaging/macos/nightly{,-lib,-sign,-verify}.sh`
  and the plist writer; `packaging/linux/nightly.sh`; the shared `nightly-common.sh`, helpers and
  the four synthetic suites.
- Dormant callers and policy template as in PhotoCraft #16459: `nightly.yml`, `nightly-sign.yml`,
  `nightly-dispatch.yml`, `nightly-macos.yml`, actionlint config, the public Linux key, the
  example policy, the preparation doc and the packaging-lint source-contract job. Every nightly
  job is literally off (`false &&`), there is no schedule and no installed policy.
- Art: nightly icon derivatives (deeper background, unchanged figure and padding), their
  provenance, attribution sidecars and `ATTRIBUTION.md` rows.
- `sonar-project.properties` now states `sonar.sources=.` beside `sonar.tests`, so enabling the
  packaging fixtures cannot silently drop the production code from Sonar.
2026-11-24 23:11:21 +01:00
Dylan M. Taylor 259b974ffa packaging: port PhotoCraft Linux nightly script and helpers 2026-11-24 16:17:55 -05:00
Dylan M. Taylor 306fde8475 fix(packaging): isolate nightly config dir, fix Exec sed delimiter, and satisfy SonarCloud 2026-11-24 15:26:18 -05:00
Dylan M. Taylor 2308f97ecd fix(nightly): fix actionlint concurrency key and nightly artifact naming
- Remove unsupported `queue: max` key from `.github/workflows/nightly-sign.yml`
  concurrency block and update `packaging/nightly-release-tests.py` to match.
- Normalize channel-only Nightly artifact basenames in `packaging/linux/package.sh`
  so `EFFECTCRAFT_BUILD_CHANNEL=nightly-v1` builds always include `-nightly`
  and match the AppImage zsync update pattern.
2026-11-24 14:21:25 -05:00
Dylan M. Taylorandskylartaylor 0e4b937b9b ci(nightly): enable supervised manual nightly runs
Port Skylar's (@skylartaylor) supervised manual nightly workflow and v3
signing policy from storytold/photocraft#16594 to EffectCraft:

- Add `.github/nightly-signing-policy.json` (craft-nightly-release-policy/v3)
  adapted for `storytold/effectcraft` (`repository_id: 1400136506`,
  `ci.yml` workflow `380135792`, SonarCloud `storytold_effectcraft`).
  `producer_workflow_id` is `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@605d58766e8f536564da8fc81d3676ac86816dea`
  for supervised manual `workflow_dispatch` runs by the release-managers list.
- Add `docs/nightly-release-preparation.md` documenting the policy values,
  ownership, and manual dispatch procedure.
- Add `packaging/nightly-release-tests.py` local contract regression suite.

Credit: @skylartaylor (storytold/photocraft#16594)

Co-authored-by: skylartaylor <[email protected]>
2026-11-24 14:14:46 -05:00
Dylan M. Taylor 6e455781c8 packaging(linux): support co-installable nightly packages 2026-11-24 13:33:21 -05:00
Dylan M. Taylor 53576d2232 Handle CRLF Cargo manifest in packaging scripts (#3656) 2026-11-13 15:59:57 -05:00
Dylan M. Taylor cbddc9d284 Fix Flatpak updates and bump to 0.24.1 (#3516)
* 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
2026-11-11 15:25:13 -05:00
Dylan M. Taylor c30fb9aeed Sonar: [[ in the plugin-catalog check, Number.* in the boa runtimes, no Invoke-Expression (S7688, S7773, S8659) (#3427)
Clears all 29 open SonarCloud issues.

- `examples/plugin-catalog/scripts/validate.sh`: `[[ ]]` in place of `[ ]` for bash tests (SonarCloud shell:S7688). Every script has a bash shebang; no test uses `-a`/`-o`, escaped parentheses or an unquoted pattern on the right of `=`.
- `crates/expr/src/prelude.js`, `crates/script/src/prelude.js`, `crates/script/src/scriptui.js`: `Number.isFinite` / `Number.isNaN` / `Number.parseInt` (javascript:S7773). Every call already has a number (a `typeof` check or `Number()` before it), and `Number.parseInt === parseInt`, so nothing changes in boa.
- `packaging/windows/test-legacy-fixture.ps1`: dot-sources `[scriptblock]::Create($block)` in place of `Invoke-Expression $block` (powershelldre:S8659). It runs in the same scope, so `$LegacyWxs` is still set after it.
- `sonar-project.properties`: S7773 and S8786 are not raised on `*.jsx`. Those are After Effects ExtendScript (ES3), which also runs in After Effects and has no `Number.isFinite` or `String.prototype.trim`. The ignore covers 7 issues in `Ease Presets.jsx` and `Rename Layers.jsx`.
2026-11-10 19:04:34 -05:00
FredApps f2aeff7e17 Merge current main into fix/gnome-window-decorations 2026-11-02 19:10:38 +01:00
Dylan M. Taylor f4f390b153 packaging(flatpak): add OCI image build and GHCR publishing helper (#2763) 2026-10-31 18:52:54 -04:00
Daniel 425b69249f fix(flatpak): install NOTICE only once 2026-10-31 11:12:26 +01:00
aiongg d4ddedddaf docs: tidy agent, contributor and asset docs 2026-10-31 04:17:22 +00:00
Dylan M. Taylor 7a9572d8b9 fix(flatpak): allow reading launcher version pins (#2704)
* fix(flatpak): allow reading launcher version pins

* fix(flatpak): allow reading launcher version pins
2026-10-30 20:12:07 -04:00
BFlat ef3d14b0fe Merge pull request #2580 from gjrtimmer/feat/web-startup-option
feat(web): choose the project the page opens with a `startup` config key
2026-10-30 04:09:49 +07:00
BFlat 89e05d4718 Merge pull request #2470 from Atalantis/macos-dialog-localizations
macOS: declare the UI languages so the open and save panels are translated
2026-10-30 00:07:33 +07:00
G.J.R. Timmer df9207d1be feat(web): keep the saved session on a demo start, bound the config request
An explicit demo startup no longer saves the session, so the demo cannot replace the last visit's project. The config request is aborted after 5 s, stops reading once the body passes the size limit, and is skipped for ?empty and ?demo. The packaged hosting notes link to the published docs.
2026-10-29 09:25:48 -04:00
G.J.R. Timmer c334c36645 feat(web): startup option in effectcraft-config.json
A startup key (last, empty or demo) chooses the project the page opens on load. empty restores the last visit's project and otherwise starts blank, never with the demo; demo always opens the demo project; last, or no key, is the current behaviour. ?empty and ?demo still win. The config file is fetched once per page load and the service worker never caches it.
2026-10-29 07:11:48 -04:00
Dylan M. Taylor c99684e28e Honor CARGO_BUILD_TARGET in FreeBSD packaging for aarch64 release builds (#2555)
* Honor CARGO_BUILD_TARGET in FreeBSD packaging for aarch64 release builds

The shared release workflow cross-compiles FreeBSD aarch64 in the x86_64 VM and sets
CARGO_BUILD_TARGET. package.sh ignored it: it built for the host, read binaries from
target/release, and took the arch from uname -m (amd64 on that VM), so the aarch64 build
would have produced an x86_64 archive with x86_64 binaries.

When CARGO_BUILD_TARGET is set, pass --target, read binaries from target/<triple>/release,
name the archive from the target arch, and skip the --version smoke test (the binary cannot
run on the x86_64 host). Unset keeps the previous behavior.

* Reject unsupported CARGO_BUILD_TARGET and gate the smoke test on the host triple

Only x86_64-unknown-freebsd and aarch64-unknown-freebsd are accepted when CARGO_BUILD_TARGET
is set; anything else exits 2 instead of being labelled freebsd-x86_64.

The --version smoke test now runs when CARGO_BUILD_TARGET is unset or equals this host's
full FreeBSD triple, so a native explicit target is still checked.
2026-10-28 15:48:35 -04:00
Brandon ThomasandClaude Opus 5.5 960620d607 macOS packaging: retry stapler when Apple's CloudKit drops the connection
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-28 12:18:40 -04:00
Jeremy d0a67ac077 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:27 +00:00
Jeremy 44061a3b33 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:13:29 +00:00
Jeremy ca36861bde 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:20 +00:00
Jeremy a41f75b4a7 docs(installer): describe the per-user default install location and scope 2026-10-27 12:09:02 +00:00
Jeremy 28a8f3b08c fix(installer): harden install-policy checks and packaging-lint workflow 2026-10-27 12:01:03 +00:00
Jeremy b110afb1ad fix(installer): address scope and ARM64 review feedback 2026-10-27 12:01:03 +00:00
Jeremy 4d5a56ed1e feat(installer): default to a per-user ArtCraft folder 2026-10-27 12:01:03 +00:00
Florent Siegenthaler 63237f78b7 Declare the UI languages to AppKit so the open and save panels are translated 2026-10-26 09:24:38 +01:00
Dylan M. Taylor 938289fa9d packaging(linux): name the repeated sha256 check (S1192) (#2456)
Route the four identical sha256sum checks through verify_sha256.
2026-10-25 21:56:45 -04:00
Daniel 6801caeb43 Merge latest upstream main and resolve GNOME Wayland control conflicts 2026-10-26 00:01:27 +01:00
skylartaylor 9ee853715d M0.37: migrate EffectCraft to egui 0.37
Reconcile main 991904888a and preserve the reviewed lifecycle, IME, rendering and lockfile changes.

Formatting, strict lint, layers, assets and WASM passed. Full CI retained 3,961 passes, 14 baseline-matching GPU failures and 31 ignored executions. The local review commit has explicit approval to retain these documented failures; native/browser acceptance and paired app performance remain open.
2026-10-25 02:01:16 +01:00
Daniel 910b099a69 Merge upstream main into GNOME window-controls fix
Preserve EffectCraft Wayland CSD, updated Linux package notices and the latest upstream implementation.
2026-10-24 10:24:28 +02:00
aiongg 5a027fa77f Packaging: pin the signing client and appimagetool, and check their hashes (#1976)
* Packaging: pin the Windows signing client and check its hash

* Packaging: pin appimagetool and check its hash

* Reject AppImage download for architectures without a pinned appimagetool

* Pin the AppImage runtime
2026-10-23 13:02:20 -04:00
Dylan M. Taylor 49d179738b packaging: use [[ tests, named locals and explicit returns (SonarCloud S7688/S7679/S7682) (#2187)
Switch the bash packaging scripts from [ to [[ for conditional tests,
give positional parameters descriptive local names, and end the shared
env.sh helpers with an explicit return. No behaviour change: every
comparison is against a literal, and a bare return keeps the last
command's status.
2026-10-23 11:17:22 -04:00
Dylan M. Taylor 5003351186 security: enforce HTTPS on curl downloads (SonarCloud S6506)
Add --proto '=https' to curl invocations so redirects cannot downgrade to
plaintext HTTP. Resolves SonarCloud S6506 (shell/docker/githubactions).
2026-10-21 17:06:49 -04:00
Brandon ThomasandClaude Opus 5.5 26b40199b7 Release 0.14.0
FreeBSD aarch64: build with 16 codegen units and no LTO in the emulated release VM, which ran past
the job's 5-hour limit with the single-unit thin-LTO profile.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-21 14:04:43 -04:00
Daniel 0605406c50 fix(linux): enable font-free Wayland window controls 2026-10-20 03:26:53 +02:00
Brandon ThomasandClaude Opus 5.5 45c9d22929 Release: install resvg for the macOS DMG background in CI
The 0.11.0 macOS release job failed after notarization with 'resvg not found': the shared
release workflow never installed it, and it was only present before via a warm cargo cache.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-17 19:03:26 -04:00
BFlat eba2c7015e Merge pull request #1455 from tydude001/rpm-soname-requires
packaging: RPM requires library sonames, so openSUSE can install it
2026-10-16 18:12:13 +07:00
BFlat 2265651b69 Merge pull request #1480 from IanHollow/codex/artcraft-effectcraft-metainfo-screenshot-bffb3039
Packaging: repair the AppStream screenshot reference
2026-10-16 18:11:27 +07:00
IanHollow 640bf30503 Packaging: repair the AppStream screenshot reference
Assisted-by: OpenAI Codex (GPT-6)
Signed-off-by: IanHollow <[email protected]>
2026-10-14 13:11:47 -07:00
tydude001andClaude Opus 5.5 6ad540e856 packaging: RPM requires library sonames, so openSUSE can install it
EffectCraft's RPM requires Fedora package names: `libxkbcommon`, `(vulkan-loader or libglvnd-egl)`,
`alsa-lib`. openSUSE has no `libxkbcommon`, `vulkan-loader` or `libglvnd-egl` package, so zypper
refuses it with `nothing provides 'libxkbcommon'` (exit 4, which the ArtCraft Launcher shows as
"error 4"; storytold/craft-launcher#341).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 11:30:14 -05:00
Daniel van LithandClaude Opus 5.5 8fea81445c macOS DMG: hdiutil create -srcfolder, so the app inside passes codesign --strict
makehybrid -hfs gave every file in the image a com.apple.FinderInfo, so the app in the
DMG, and a copy installed from it, failed codesign --verify --strict --deep ("resource
fork, Finder information, or similar detritus not allowed"), though Gatekeeper accepts
it. Build the image as VectorCraft (#1085) and PdfCraft (#823) do now: hdiutil create
-srcfolder with a few tries for CI's "Resource busy", and verify the mounted app with
--strict --deep so the regression can't ship again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 10:36:50 +13:00
Brandon Thomas 3484f91c3f Merge pull request #1009 from marcoarnulfo/fix/portable-mode 2026-10-13 04:28:22 -04:00
Brandon ThomasandClaude Opus 5.5 470ea7a3af Release 0.9.2: install the wasm-bindgen CLI for the web release build
The shared release workflow installs trunk, but EffectCraft's web build
runs the wasm-bindgen CLI directly (cargo xtask web), so the Web job
fails with "wasm-bindgen CLI not found". In CI, package.sh now installs
the CLI at xtask's WASM_BINDGEN version, as the per-app release.yml did
before the move to craft-common-actions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-12 12:37:47 -04:00
Marco Arnulfo e2188c436c Portable mode: a portable.txt beside the exe keeps settings in EffectCraftData (#993) 2026-10-12 13:42:01 +02:00
Brandon ThomasandClaude Opus 5.5 f953cd2855 Release prep: 0.8.0 and a Linux riscv64 release build (#669)
* Release prep: bump to 0.8.0 and add a Linux riscv64 release build

- release.yml: new `linux-riscv64` job, ported from GridCraft. It cross-compiles on
  ubuntu-24.04 against riscv64 libraries from ports.ubuntu.com (the Linux job's X11/Wayland/GL
  -dev packages plus ALSA), ships effectcraft-<v>-linux-riscv64.tar.gz, and smoke-tests
  effectcraft-cli under qemu-riscv64. The draft-release job now needs it, so its tarball is
  uploaded and covered by SHA256SUMS.txt.
- packaging/linux/package.sh: cross-compiles when CROSS_ARCH/CROSS_TARGET/CROSS_COMPILE are set
  (cargo --target, the cross strip, the EMULATOR smoke test), as GridCraft's does.
- Version 0.7.0 -> 0.8.0 (cargo xtask version set), Cargo.lock refreshed.
- README and docs/releasing.md list the riscv64 tarball.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Fix FreeBSD CI: pointer_wrap test harness, wasm32 target, clippy as_chunks

- pointer_wrap tests: the harnesses dropped run_ui's FullOutput with the font atlas upload still
  in textures_delta, and epaint 0.36's drop check panics on that in debug builds. Every
  pointer_wrap test failed on every platform; FreeBSD is the only CI that runs them. Clear the
  delta, as the other UI tests do.
- freebsd.yml: install wasm32-unknown-unknown in the VM. Without it the host plug-in test's build
  of examples/plugins/posterize-bands failed (E0463, no std) and the test skipped silently; now
  it builds and runs.
- media/convert.rs: chunks_exact(2) -> as_chunks::<2>() (clippy chunks_exact_to_as_chunks,
  new in Rust 1.99); same pairs, same dropped remainder.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-10-10 21:08:18 -04:00
Claude 1c7fcccef2 Packaging: the Windows installer offers a desktop shortcut, on by default (#343)
The MSI only installed a Start Menu shortcut. The wizard's folder page now has a
"Create a desktop shortcut" box (DESKTOPSHORTCUT, 1 by default; DESKTOPSHORTCUT=0
for silent installs) that adds an EffectCraft shortcut to the Public desktop. The
choice is recorded under HKLM\Software\EffectCraft so an upgrade keeps it, and an
upgrade from a release before this option adds none. test-msi.ps1 checks the
shortcut is created by default, kept by upgrades, removed on uninstall and absent
with DESKTOPSHORTCUT=0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01QiAJeFttZp83Fh7YuzAR5f
2026-10-10 22:30:58 +00:00