Skip to content

feat: package AppImage and Flatpak for Linux - #45

Merged
Microck merged 1 commit into
mainfrom
release/linux-packages
Nov 26, 2026
Merged

Microck merged 1 commit into
mainfrom
release/linux-packages

Conversation

@Microck

@Microck Microck commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

summary

linux releases only have tarballs today. the desktop candidate workflow now builds an appimage and a flatpak bundle for amd64 and arm64 from the same gui binary. the appimage runtime source and notices ship with the release.

the flatpak uses the desktop file chooser for access to host files. this adds direct-install bundles for a future release.

Closes #43.

evidence

  • on debian 13 arm64, the appimage and installed flatpak both converted an authored bitmap to the same SVG bytes as the matching CLI. the flatpak file chooser also opened the bitmap under standard sandbox permissions.
  • source checks, actionlint, and shell syntax passed. checked the runtime source archives and extracted the notices from the appimage.

merge risk

the change affects linux desktop packaging and the corresponding source archive. the existing release-candidate workflow will check both architectures.

Reviewed with sol-loop: 2 rounds with GPT-6.2 Sol on medium. Sol verdict: approved.

Implemented and tested with GPT-6.2 Sol.

Summary by Sourcery

Package Linux desktop candidates as AppImage and Flatpak bundles alongside existing archives, with reproducible runtime sources and release validation.

New Features:

  • Add AppImage and Flatpak release bundles for Linux amd64 and arm64, with Flatpak file access through the desktop chooser.
  • Provide Linux desktop metadata and consistent application identifiers for packaged installations.

Enhancements:

  • Build and smoke-test Linux tarball, AppImage, and Flatpak packages from the same GUI binary and validate their desktop integration.
  • Include AppImage runtime sources, dependency materials, notices, and rebuild instructions in corresponding source archives.

Build:

  • Add Linux packaging tooling and scripts for producing verified AppImage and Flatpak artifacts.

CI:

  • Extend the desktop candidate workflow to build and exercise AppImage and Flatpak packages on both Linux architectures.

Documentation:

  • Document Linux package artifacts, installation and testing guidance, AppImage runtime provenance, and updated release artifact expectations.

Chores:

  • Update the Linux desktop application ID, desktop entry, icon, and AppStream metadata to use the release application identifier.

@sourcery-ai

sourcery-ai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Sorry @Microck, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 2 days and 18 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@sourcery-ai

sourcery-ai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

UI

Align the Linux desktop file, window app ID, icon, and metainfo around the Flatpak application ID so desktop environments identify the app consistently.

  • rust/crates/openvector-gui/assets/openvector.desktop L6-10
  • rust/crates/openvector-gui/assets/dev.micr.openvector.metainfo.xml L1-18
  • rust/crates/openvector-gui/src/main.rs L31-33
  • tools/package-gui.mjs L11-12, L53-59, L92

Configuration

Build AppImage and Flatpak artifacts from the staged Linux application, including validated metadata, pinned tools, bundled notices, and the Flatpak sandbox permissions.

  • tools/package-linux.sh L1-73

Extend Linux candidate CI to install packaging prerequisites, build both packages, and smoke-test the AppImage and installed Flatpak alongside the archive.

  • .github/workflows/desktop-candidates.yml L94-96, L116, L129-156

Prepare and include the pinned AppImage runtime sources, dependency archives, notices, and rebuild instructions in corresponding-source archives.

  • tools/package-release-source.sh L24, L39-41
  • tools/prepare-appimage-source.sh L1-55

Ignore generated Linux packaging artifacts in the repository.

  • .gitignore L10, L29-30

Documentation

Document the Linux package artifacts, release validation expectations, embedded runtime source obligations, and updated desktop metadata paths.

  • CHANGELOG.md L9-12
  • docs/building.md L214
  • docs/release-runbook.md L148-173 (+3 small edits)

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 13 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 095e8b90-52ac-416f-8dad-86f7ebeb8f1e
Commits

Reviewing files that changed from the base of the PR and between adce9d5 and 0c22307.

Files selected for processing: 12

  • .github/workflows/desktop-candidates.yml
  • .gitignore
  • CHANGELOG.md
  • docs/building.md
  • docs/release-runbook.md
  • rust/crates/openvector-gui/assets/dev.micr.openvector.desktop
  • rust/crates/openvector-gui/assets/dev.micr.openvector.metainfo.xml
  • rust/crates/openvector-gui/src/main.rs
  • tools/package-gui.mjs
  • tools/package-linux.sh
  • tools/package-release-source.sh
  • tools/prepare-appimage-source.sh

No actionable comments were generated in the recent review.

This PR adds Linux AppImage and Flatpak bundles for amd64 and arm64 and changes the Linux app ID to dev.micr.openvector.

  • Compatibility: the app ID change renames the desktop file, icon names, and Wayland app_id. Desktop integration for existing Linux installs may change.
  • Risk: the AppImage build downloads pinned tools and runtime archives. It verifies them by SHA-256, but this is not tested beyond the author's Debian 13 arm64 run.
  • Reviewer action: confirm the release-candidate workflow passes the new AppImage and Flatpak smoke tests on amd64 and arm64.

Walkthrough

The change adds AppImage and Flatpak packages for Linux amd64 and arm64. It updates the desktop app ID and adds AppStream metadata. New scripts build the packages and collect AppImage runtime source materials for source releases. The candidate workflow builds and smoke-tests the extracted app, AppImage, and installed Flatpak. Release documentation now lists the Linux artifacts and their packaging and QA steps.

Sequence Diagram(s)

sequenceDiagram
  participant Workflow as Linux candidate workflow
  participant Packager as package-linux.sh
  participant AppImage
  participant Flatpak
  Workflow->>Packager: Build Linux desktop packages from staged GUI
  Packager->>AppImage: Create AppImage
  Packager->>Flatpak: Build and export Flatpak
  Workflow->>AppImage: Run smoke test under Xvfb and D-Bus
  Workflow->>Flatpak: Install and launch through temporary wrapper
Loading
Merge Risk: Minimal · previous review adce9

This change adds AppImage and Flatpak packages for Linux and renames the desktop app ID consistently. No actionable merge-blocking risk was found in the supplied evidence.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: f394f3c5-c17f-48fe-94fd-0f7b77d49e1e
Commits

Reviewing files that changed from the base of the PR and between cfebb61 and adce9d5.

Files selected for processing: 12

  • .github/workflows/desktop-candidates.yml
  • .gitignore
  • CHANGELOG.md
  • docs/building.md
  • docs/release-runbook.md
  • rust/crates/openvector-gui/assets/dev.micr.openvector.desktop
  • rust/crates/openvector-gui/assets/dev.micr.openvector.metainfo.xml
  • rust/crates/openvector-gui/src/main.rs
  • tools/package-gui.mjs
  • tools/package-linux.sh
  • tools/package-release-source.sh
  • tools/prepare-appimage-source.sh

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.

@Microck
Microck force-pushed the release/linux-packages branch from adce9d5 to 0c22307 Compare November 26, 2026 16:12
@Microck

Microck commented Nov 26, 2026

Copy link
Copy Markdown
Owner Author

Note

🤖 GPT-6.2 Sol responding on behalf of Microck

@coderabbitai review

The packaging patch is identical after rebasing onto main. Both Linux candidate jobs passed on 0c22307.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@Microck

Microck commented Nov 26, 2026

Copy link
Copy Markdown
Owner Author

Note

🤖 GPT-6.2 Sol responding on behalf of Microck

@codex review

Please review the current head 0c22307. Both Linux packaging jobs passed. CodeRabbit approved the identical patch before the rebase and is currently rate-limited.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T16:40:49.873260Z 0c22307 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 0c223070a9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Microck
Microck merged commit 2a0e1a4 into main Nov 26, 2026
13 checks passed
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.

AppImage/Flatpak

1 participant