mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-12 04:42:16 +00:00
ArtCraft’s Help menu has news but no application update check, and its Flatpak cannot invoke the host updater. Add **Help → Check for Updates…** with background checks, current/available versions, explicit Update and restart, progress and failure states, and Releases fallback. Browser users are offered a reload and the desktop releases. Use the same verified `craft-update` core as the native Craft apps, pinned to the immutable reviewed commit in https://github.com/storytold/craft-libs/pull/970. Keep ArtCraft’s existing `ai.artcraft.app` identity and release naming. Honor launcher pins, reject active generation tasks before download and again before replacement, preserve the native window during installation, defer the helper until accepted exit, and report helper outcomes on startup. Registered NSIS copies use Releases; they are not overwritten as portable folders. Grant the host update interface and read-only launcher choices in the existing Flatpak manifest. No frontend network-policy expansion. Add a separate version commit changing the canonical Tauri configuration and display version to **0.42.1**, with a regression keeping them synchronized. Once this and the shared-library prerequisite are green and merged, merge main into the release branch, finish all platform drafts, verify signed checksums/assets, and publish. Validation: native all-target cargo check inside GNOME SDK 51; all six focused Rust updater tests; all ten Help-menu/UI tests; TypeScript project build; production frontend build; Flatpak permission regression red before and green after. All six native SDK tests also pass at the final 0.42.1 version. The existing lockfile needs compatible chrono and crc32fast updates for the shared updater; other dependency revisions are preserved.
37 lines
1.3 KiB
YAML
37 lines
1.3 KiB
YAML
app-id: ai.artcraft.app
|
|
runtime: org.gnome.Platform
|
|
runtime-version: '51'
|
|
sdk: org.gnome.Sdk
|
|
command: artcraft
|
|
finish-args:
|
|
# The shared updater inspects and replaces this signed release bundle on the host.
|
|
- --talk-name=org.freedesktop.Flatpak
|
|
# Honor launcher-pinned versions without access to other host application data.
|
|
- --filesystem=xdg-data/ArtCraft/versions:ro
|
|
- --socket=wayland
|
|
- --socket=fallback-x11
|
|
- --socket=pulseaudio
|
|
- --share=ipc
|
|
- --share=network
|
|
- --device=dri
|
|
- --filesystem=xdg-pictures
|
|
- --filesystem=xdg-videos
|
|
- --filesystem=xdg-download
|
|
# The app hardcodes its data to ~/Artcraft (settings, credentials, state).
|
|
# Persist it under ~/.var/app/ai.artcraft.app/Artcraft so data survives exits.
|
|
- --persist=Artcraft
|
|
modules:
|
|
- name: artcraft
|
|
buildsystem: simple
|
|
build-commands:
|
|
- cp -a . /app/
|
|
- install -Dm644 /app/share/icons/hicolor/128x128/apps/artcraft.png /app/share/icons/hicolor/128x128/apps/ai.artcraft.app.png
|
|
- sed -i 's/^Icon=.*/Icon=ai.artcraft.app/' /app/share/applications/ai.artcraft.app.desktop
|
|
- mv /app/bin/artcraft /app/bin/artcraft.real
|
|
- install -Dm755 artcraft-wrapper /app/bin/artcraft
|
|
sources:
|
|
- type: dir
|
|
path: stage
|
|
- type: file
|
|
path: artcraft-wrapper
|