Skip to content

Add Flatpak support - #45

Merged
arximus88 merged 5 commits into
arximus88:stagingfrom
blossomlabs-gh:dev
Aug 14, 2026
Merged

Add Flatpak support#45
arximus88 merged 5 commits into
arximus88:stagingfrom
blossomlabs-gh:dev

Conversation

@blossomlabs-gh

Copy link
Copy Markdown

Summary

  • Replace the flatpak manifest's placeholder build step (echo 'TODO: build commands not yet implemented') with a real, verified offline build pipeline.
  • Add flatpak/package.json + package-lock.json, a build-only npm dependency set (vite/svelte/
    electron toolchain, no Playwright/Biome/electron-builder) so flatpak-node-generator can vendor
    everything Flathub's network-less build needs, including the Electron 43.3.0 binary itself.
  • Add flatpak/generated-sources.json (233 vendored sources) generated from that lockfile.
  • Build now: offline npm install -> vite build -> offline prod npm install in dist/ -> unzip
    the vendored Electron binary into /app/main -> drop dist/ into /app/main/resources/app
    (Electron's default app-loading convention) -> install desktop/icon/metainfo files.
  • Deliberately skip running electron-builder inside the sandbox, it fetches its own auxiliary
    tooling (app-builder etc.) from GitHub at build time, which isn't vendorable offline the way
    flatpak-node-generator handles the electron package itself.
  • Fix an invalid Categories=...;Design;... value in the .desktop file (flagged by
    appstreamcli during export; Design isn't a registered category).
  • Ignore build-dir/ and .flatpak-builder/, flatpak-builder's local build output.

Test plan

  • flatpak-builder --user --force-clean build-dir flatpak/app.borys.FigmaLinuxNext.yml builds
    clean against a local working-tree source (offline, after vendoring)
  • flatpak-builder --user --install ... installs successfully
  • flatpak run app.borys.FigmaLinuxNext boots under zypak: IpcRegistry seals with all 69
    channels, MCP server comes up on 127.0.0.1:3845

@arximus88
arximus88 changed the base branch from dev to staging August 14, 2026 08:41
@arximus88
arximus88 merged commit ec91ead into arximus88:staging Aug 14, 2026
1 check passed
arximus88 added a commit that referenced this pull request Aug 14, 2026
… guard

Adds an Unreleased entry crediting @blossomlabs-gh for #45, and a truth-table
case pinning shouldRelaunchUnderX11 to false under Flatpak — the guard exists
because re-exec'ing Electron through zypak's spawn interception segfaults.
arximus88 added a commit that referenced this pull request Aug 14, 2026
…t the tag

Both files were installed from the cloned git source, so every edit to them sat
unused until the release after it — the invalid Categories value fixed in #45 and
the screenshot URLs fixed since would both have shipped a release late. They now
come from the manifest directory like package.json already does, overwriting what
the checkout brought in.
@arximus88

Copy link
Copy Markdown
Owner

Thanks for pushing it. I was try to delay dealing with Flatpack)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants