packaging-tauri-for-linux

Packages Tauri v2 applications into AppImage, deb, RPM, Flatpak, Snap, and AUR formats.

Updated Jun 7, 2026
One-click install
npx skills add https://github.com/dt418/better-shot-x --skill packaging-tauri-for-linux-dt418
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: packaging-tauri-for-linux
Source: https://github.com/dt418/better-shot-x/tree/main/.agents/skills/packaging-tauri-for-linux
Command: npx skills add https://github.com/dt418/better-shot-x --skill packaging-tauri-for-linux-dt418

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Distributing Tauri v2 desktop applications on Linux requires navigating six different packaging formats, each with its own configuration, dependency declarations, signing requirements, and store submission rules, which is error-prone without a consolidated reference. ## Core Features & Use Cases - Multi-Format Bundle Configuration: Provides complete tauri.conf.json settings and build commands for AppImage, Debian (.deb), and RPM packages, including dependency lists, install scripts, and GPG signing. - Sandboxed Store Packaging: Supplies working Flatpak manifests with MetaInfo files and Flathub submission steps, plus snapcraft.yaml configurations with confinement plugs and layout bindings. - Arch and ARM Support: Covers AUR PKGBUILD templates for binary and source builds, plus ARM64 cross-compilation setup with linker configuration. - Use Case: You have finished a Tauri v2 app and need to publish it to Flathub, the Snap Store, and the AUR while also producing AppImage and deb artifacts in a GitHub Actions release pipeline. ## Quick Start Ask the assistant to package your Tauri v2 app as a Flatpak and generate the manifest, MetaInfo file, and build commands for Flathub submission.

Frequently Asked Questions about packaging-tauri-for-linux

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I package a Tauri v2 app for Linux?

Run npm run tauri build with the --bundles flag specifying appimage, deb, or rpm. Configure format-specific options like dependencies and extra files under bundle.linux in tauri.conf.json before building.

How to publish a Tauri app on Flathub?

Create a Flatpak manifest that extracts your prebuilt deb, add a MetaInfo XML file, then fork the flathub repository, branch from new-pr, and open a pull request. Address reviewer feedback to receive repository access.

Does Tauri AppImage support ARM cross-compilation?

No, AppImage has no cross-compilation support for ARM. Use GitHub-hosted ubuntu-22.04-arm runners to build natively. Debian packages do support ARM64 cross-compilation via the aarch64-linux-gnu gcc linker.

Why does my Tauri app fail on older Linux distributions?

The binary was likely built against a newer glibc than the target system provides. Build on the oldest base system you intend to support, such as Ubuntu 18.04, using Docker or CI runners for reproducibility.

How do I sign RPM packages built with Tauri?

Generate a GPG key, export the secret key in armor format, and set the TAURI_SIGNING_RPM_KEY and TAURI_SIGNING_RPM_KEY_PASSPHRASE environment variables before building. Verify signatures afterward with rpm -Kv.

Why is my Tauri tray icon broken inside Flatpak?

Sandboxed apps cannot write tray icons to the default temp path. Set temp_dir_path on the TrayIconBuilder to the app cache directory and request the xdg-run/tray-icon filesystem permission in the manifest.