87 Commits

Author SHA1 Message Date
BFlat 92e3622177 M9: figcraft-server checks its own health in a container, and runs with Docker Compose (#2044, part) (#2903)
figcraft-server healthcheck asks the server on the listen address for /healthz (exit 0 on 200, 1 otherwise), and the distroless image declares it as its HEALTHCHECK. packaging/server/docker-compose.yml builds the image and takes its FIGCRAFT_SERVER_* settings from a .env file beside it, with trusted_proxy defaulting to Docker's address range and the port on loopback. docs/server.md covers the subcommand, Compose, and running behind a platform proxy that ends TLS. Part of #2044.
2026-12-02 08:27:23 +07:00
BFlat 2ed5266e7f M6: .fig and .jam files offer FigCraft under Open With (#1788) (#2905)
macOS claims both extensions in a Viewer/Alternate document type, Windows
adds an OpenWithProgids entry and SupportedTypes without taking the
default, and Linux defines MIME types for both (with a content match so
.fig design files are told apart from xfig drawings). None of it names
another product's type identifier.
2026-12-02 08:00:09 +07:00
BFlat 04fe772915 Merge pull request #2804 from storytold/fix/2168-dropped-file-read
Flatpak: images dragged in from Downloads import instead of failing to read
2026-12-01 11:03:53 +07:00
BFlat cfbf83c158 Merge pull request #2802 from storytold/feat/2539-present-entry
M5: the browser build presents a prototype file from its own site, view only, from a link
2026-12-01 10:34:40 +07:00
bflatastic 3760b9b527 Flatpak: images dragged in from Downloads import instead of failing to read
The Flatpak grants Pictures and Documents only. A drop hands over the
host path (winit reads text/uri-list, not the document portal), so a
file dragged from ~/Downloads couldn't be read inside the sandbox. Grant
xdg-download in both manifests and correct the comment that said drops
went through the document portal.

Fixes #2168
2026-12-01 10:14:57 +07:00
bflatastic c206c523b8 M5: the browser build presents a prototype file from its own site, view only, from a link (#2539)
Opening the web build at `index.html#present=<file>&start=<frame>` now downloads that file
from the page's own site, opens it and presents its prototype full-window with no editor
behind it. A static folder of the web build and its `.figcraft` files becomes a set of
prototype links.

- Only a file on the page's own origin over HTTP(S) is fetched (same-origin mode, so a
  redirect to another site fails); the 512 MB browser limit applies before and after reading.
- The presenter is view only: no Close, Escape and Cmd/Ctrl+W do nothing, no tab bar, no
  comments, no device or responsive choice. Scale, hotspot hints, Inspect, restart and
  stepping between frames stay.
- `start` is a frame id; a frame the file lacks starts where Present starts, with a message.
- A file that can't be fetched or opened, or has nothing to present, leaves a note saying why.
- Ignored in host mode; the files the last page kept are left for the editor.
2026-12-01 09:56:28 +07:00
bflatastic df9832f32f M9: a page hosting the browser build can ask to publish the open file to its own server (#2786)
A page that hosts the browser build (`?host=parent` or `data-host="page"`) now sends
`figcraft:publish {name?}` to put the open file on the server it names in
`<meta name="figcraft-server">`. The app opens File > Publish to server... for that file,
addressed to the page's server and named as asked; the user still presses Publish. The page
then hears `figcraft:published {file, name, edit, view}`, or `{error}` when the page names no
server, no file is open, a request still waits, the user closed the dialog ("cancelled"), the
publish failed, or the user sent it to another server. A server in the message is never used.

The two messages are FigCraft's own (the shared host contract has none for a server); they go
over the transport craft-web-host connected, with the same origin and source checks.
2026-12-01 09:08:29 +07:00
Codex 2202a51240 Document native image metadata retention and the enforced web limit 2026-11-30 03:52:58 +01:00
Codex 3a2f093848 Align browser format policy with the reviewed dependency PR 2026-11-30 02:27:43 +01:00
Codex d968e3eece Keep uncommon format conversion on desktop to fit the browser budget 2026-11-30 02:19:42 +01:00
Dylan M. Taylor 3598bdcd15 ci,packaging: enable automated nightly schedule and Stage 2 signer dispatch (#2712)
* ci,packaging: enable automated nightly schedule and Stage 2 signer dispatch

* ci: update actions lockfile for nightly-dispatch.yml
2026-11-29 17:00:08 -05:00
Dylan M. Taylor 3a8a08ca74 fix(packaging): strip staged figcraft-nightly from Arch handoff and re-enable arch (#2727) 2026-11-28 22:01:28 -05:00
Dylan M. Taylor 6aa490aaa5 ci: pin storytold/craft-common-actions to @main universally (#2722) 2026-11-28 16:06:10 -05:00
Dylan M. Taylor d95c6a91d4 ci,packaging: roll out nightly signing, macOS docs layout, and profile reopen fix (#2709) 2026-11-28 11:50:56 -05:00
Ivan · VanTan 571c0a57c0 Preserve macOS app signatures in shipped DMGs (#590)
* M9: preserve app signatures in macOS DMGs (#387)

* M9: handle EXIT trap diagnostics in CI ShellCheck

* #590: use [[ ]] tests in the DMG scripts

* #590: SHA-pin actions/checkout in the DMG test job

* #590: keep "DMG stapled" in the strict verification summary

* Release: DMG integrity job uses harden-runner v2.23.0, matching the other workflows

---------

Co-authored-by: bflatastic <bombayapirat@gmail.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-28 15:52:30 +01:00
Bryton Cooper 927408fe16 figcraft-web: confirmed saves for hosts that opt in (#2366)
A host page that opts in with `?save=managed` (or `data-save="managed"`
on the canvas) now gets each Save and Save As of the document with an
`id` (`save-1`, `save-2`, ...), and the document keeps its unsaved
changes until the host answers `figcraft:saved` with that `id`. Hosts
that don't opt in see no change: a file still counts as saved once it is
posted.

- `host_saves.rs`: the bookkeeping, apart from the browser so it is
  tested natively. One save waits at a time; a newer one replaces it;
  answers for any other `id` are ignored; a file the host opens forgets
  the waiting save; a save unanswered after 30 s counts as not stored
  (the clock is passed in). A Save As becomes the document's file only
  once confirmed, so a retry after a failure is still `saveAs: true`.
- `host.rs`: the listener only queues what the host sent; the shell
  handles it in order each frame. Exports and copies carry no `id` and
  `saveAs: false`. A timeout tells the user and posts `figcraft:failed`
  with the `id`, and the app wakes itself for it.
- ui-egui: `Services::deliver_document` hands the document's own file
  over (its default is `download`, so desktop and plain browser saves
  are unchanged). `Delivery::Pending` skips `file.markSaved`;
  `FigApp::document_stored` and `document_not_stored` finish the save.
- engine: `FileSnapshot::delivered` marks the snapshot's tab saved as of
  the snapshot, so edits made while the save was in flight stay unsaved,
  and a tab closed or saved since is left alone. It shares its tail with
  `FileSnapshot::save`.

`craft-web-host` at the pinned rev has no host-to-app refusal message
and no `host {confirmsSaves}` handshake (storytold/craft-libs#1338), so
a host's refusal shows as the timeout until the crate adds them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 04:59:42 -07:00
BFlat 68fe117462 Merge pull request #2482 from NK2552003/fix/linux-hicolor-icon-cache
packaging(linux): refresh Hicolor icon cache in AppRun and support gtk4-update-icon-cache
2026-11-27 14:17:57 +07:00
BFlat b06a5fef52 Merge pull request #2561 from supersfera-online/i18n/ru
Add Russian translation (ru)
2026-11-27 14:10:48 +07:00
FredApps 8d50b20c64 figcraft-cli: follow RFC-0018 (run(args,out,err), typed errors, env flags, --in-place, man pages and completions) 2026-11-26 22:34:19 +01:00
supersfera 356b61539b ru: remove the per-file translation notices
The translation is under the repository's licence, and authorship is in git history.
2026-11-26 12:57:38 -08:00
skylar taylor-barrick 79ba8894b3 Switch on supervised nightlies on the nightly-signer branch (#2636)
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.
2026-11-25 20:44:36 -06:00
skylar taylor-barrick 39c1f94a4f Use the shared nightly launcher template (#2628)
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:05 -06:00
Dylan M. Taylor ef2a9eeefc packaging(linux): support co-installable nightly packages (#2603)
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch.

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-24 18:55:17 -06:00
supersfera c324c02977 ru: state CC0-1.0 for Russian metainfo strings 2026-11-24 07:10:15 -08:00
supersfera 141083243a ru: address review (metainfo license notice) 2026-11-21 19:28:52 -08:00
supersfera 420365a4ed Add Russian translation (ru).
Update the in-app Russian catalog and add Russian strings to the
Linux desktop, AppStream, and MIME metadata.

Copyright (c) 2026 SuperSfera LLC, MIT OR Apache-2.0.
2026-11-21 17:09:55 -08:00
NK2552003 ef957a61c8 packaging(linux): add GTK 4-only icon-cache fallback test for AppRun and postinst.sh 2026-11-19 07:10:24 +05:30
NK2552003 fce55c315a packaging(linux): refresh Hicolor icon cache in AppRun and support gtk4-update-icon-cache 2026-11-19 06:55:52 +05:30
Dylan M. Taylor 898bfc2e60 Fix Flatpak updates and bump to 0.17.1 (#2267)
* fix(flatpak): allow release checks and self-update helpers

* test: keep Flatpak permission parsing within strict Clippy rules

* chore: bump version to 0.17.1 for the Flatpak update fix
2026-11-11 15:01:36 -05:00
Dylan M. Taylor 79c363466a fix(web): allow up to Cloudflare 25 MiB cap in package.sh (#2155) 2026-11-09 06:59:31 -05:00
BFlat d9da37c246 Merge pull request #1818 from michaelgiraldo/codex/combined-caddy-example
docs: add a combined browser and collaboration Caddy example
2026-11-07 11:57:45 +08:00
Helen Kwok cb9a63807e figcraft-web: speak the host messages through craft-web-host
The transports, the message types and the origin checks come from the shared crate (storytold/craft-libs#420); FigCraft keeps what is its own: which saved files become the document, the open size limit and the author.
2026-11-05 17:50:57 +08:00
Helen Kwok 845e34dfeb packaging/web: document what page host mode trusts, the limits on host files, and the stable event names 2026-11-05 16:43:01 +08:00
Helen Kwok 3acb629e19 packaging/web: say that ?host=parent takes precedence over data-host="page" 2026-11-05 16:43:01 +08:00
Helen Kwok fc3679047e feat(web): a host bridge for embedding pages, ?host=parent and data-host="page" (#1356)
A page that embeds the web build can hand it a file and get every save back instead of a browser download, and hears about unsaved changes: ?host=parent for a same-origin iframe (postMessage, the protocol the GridCraft, PdfCraft, WordCraft and CADCraft bridges use) and data-host="page" on the canvas for a page that loads the module into its own document (non-bubbling CustomEvents on the canvas). The bridge holds a Transport (Parent or Page) with one send; the pure rules are unit-tested; the hosting guide documents both modes.
2026-11-05 16:43:01 +08:00
michaelgiraldo 86e74a93f5 M9: avoid immutable caching of missing browser assets 2026-11-01 11:54:10 -08:00
michaelgiraldo 6f7814c9d3 M9: document combined browser and collaboration hosting 2026-11-01 11:23:39 -08:00
Dylan M. Taylor b0673ffc8b packaging(flatpak): add OCI image build and GHCR publishing helper (#1784) 2026-10-31 18:52:48 -04:00
Dylan M. Taylor 9ce1d91d39 fix(flatpak): allow reading launcher version pins (#1722)
* fix(flatpak): allow reading launcher version pins

* fix(flatpak): allow reading launcher version pins
2026-10-30 20:12:37 -04:00
Patrick Wozniak 2d23f95673 M9: Home ▸ Online shows the server's team list, and its files open by links without a secret (desktop and browser) 2026-10-30 17:10:12 +01:00
BFlat 3c1718bf86 M9: publish to a server from the browser (Share > Online and Publish to server in the web build, #917) (#1567)
The web transport implements LiveLink::publish and the hosting and sharing background requests over the page's WebSocket. Managing connections run as exchanges (exchange.rs) in the browser client's driver; the requests and what their answers mean are shared with the desktop transport (requests.rs). The Share popover offers online sharing in the browser (no local network), and Publish to server opens there. Fixes #917.
2026-10-30 04:32:48 +07:00
BFlat 704fb0b717 M4: use the fonts installed on this computer in the browser (Local Font Access, #1051) (#1568)
Where the browser lists them (window.queryLocalFonts, Chromium), the font menu offers Use fonts installed on this computer; the fonts join the font database by name and each style's bytes are read only when text uses it, then auto-sizing text refits. Rust only (js-sys/web-sys). Fixes #1051.
2026-10-30 04:14:33 +07:00
BFlat aa727500a4 M1: keep settings next to the executable in portable mode (#1320) (#1558)
The settings folder comes from craft-settings' rules: FIGCRAFT_CONFIG_DIR,
a `portable` file next to the executable (config/ beside it), then the
platform folder every earlier version used. The Windows portable zip ships
the marker, and a portable folder without preferences starts with a copy
of the platform folder's.
2026-10-30 03:35:12 +07:00
BFlat 3d5185c2ab M0.9: web wasm back under the 24 MiB gate (#1472) (#1511)
The browser build's wasm was 25,982,540 bytes, past the gate raised for 0.12.1. It is now
23,915,213 bytes (22.8 MiB), 1.2 MiB under the restored 24 MiB gate:

- Catalog rows keep their plural forms behind a reference: Text is two words, not room for
  four strings, across ~52,000 baked-in rows (-454 KB).
- The browser build compiles with wasm SIMD (apps/figcraft-web/.cargo/config.toml, wasm-opt
  --enable-simd), so egui's glyph rasterizer leaves out its scalar SIMD fallback (-1.6 MB).
  The plugin workspace is built from the repository root and stays without SIMD.
- Revert the gate raise (cb227c97); the hosting guide names the WebAssembly SIMD requirement.
2026-10-29 16:14:40 +07:00
Nicek 7ea6a424e9 chore: Windows 打包签名、忽略本地目录、贡献者署名 2026-10-29 09:33:54 +08:00
Dylan M. Taylor 2af5e232d5 Honor CARGO_BUILD_TARGET in FreeBSD packaging for aarch64 release builds (#1475)
Resolve host-tuple to the host triple, pass --target to cargo build when
CARGO_BUILD_TARGET is set, and skip the --version smoke run for cross
builds (they cannot run on the x86_64 VM); cross builds get an ELF check
instead. Archive names carry the arch from the target triple.

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-28 15:48:52 -04:00
Brandon Thomas cb227c9715 Web: raise the wasm size gate to 25 MiB - 512 KiB
The 0.12.0 release's Web job failed at 25,319,327 bytes against the 24 MiB (25,165,824-byte) gate. opt-level z, fat LTO and wasm-opt -Oz are already in place and extra wasm-opt passes save only ~20 KB, so the gate moves to 25,690,112 bytes, still under Cloudflare's 25 MiB per-file cap. The wasm grew ~2 MB in three days (egui 0.37, new features); bringing it back down is follow-up work.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 13:36:52 -04:00
Dylan M. Taylor 32e8fd0b29 Grant network access so update checks can reach GitHub (#1471) 2026-10-28 13:20:45 -04:00
Jeremy 738b218837 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:54 +00:00
Jeremy 2893518c84 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:22 +00:00