RepositoryRustMTMalta
CR

crabnebula-dev/cargo-packager

Rust executable packager, bundler and updater.

516stars
53forks
27issues
5views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: bundler

#1 Repository of the week

1
TINIX TRENDING·Topic: msi

#1 Repository of the week

1
TINIX TRENDING·Topic: appbundle

#1 Repository of the week

cargo-packager

cargo-packager splash

Executable packager, bundler and updater. A cli tool and library to generate installers or app bundles for your executables. It also has a compatible updater through cargo-packager-updater.

Supported packages:

  • macOS
    • DMG (.dmg)
    • Bundle (.app)
  • Linux
    • Debian package (.deb)
    • AppImage (.AppImage)
    • Pacman (.tar.gz and PKGBUILD)
  • Windows
    • NSIS (.exe)
    • MSI using WiX Toolset (.msi)

Rust

CLI

The packager is distributed on crates.io as a cargo subcommand, you can install it using cargo:

cargo install cargo-packager --locked

You then need to configure your app so the cli can recognize it. Configuration can be done in Packager.toml or packager.json in your project or modify Cargo.toml and include this snippet:

[package.metadata.packager]
before-packaging-command = "cargo build --release"

Once, you are done configuring your app, run:

cargo packager --release

Configuration

By default, the packager reads its configuration from Packager.toml or packager.json if it exists, and from package.metadata.packager table in Cargo.toml. You can also specify a custom configuration using the -c/--config cli argument.

For a full list of configuration options, see https://docs.rs/cargo-packager/latest/cargo_packager/config/struct.Config.html.

You could also use the schema file from GitHub to validate your configuration or have auto completions in your IDE.

Building your application before packaging

By default, the packager doesn't build your application, so if your app requires a compilation step, the packager has an option to specify a shell command to be executed before packaing your app, beforePackagingCommand.

Cargo profiles

By default, the packager looks for binaries built using the debug profile, if your beforePackagingCommand builds your app using cargo build --release, you will also need to run the packager in release mode cargo packager --release, otherwise, if you have a custom cargo profile, you will need to specify it using --profile cli arg cargo packager --profile custom-release-profile.

Library

This crate is also published to crates.io as a library that you can integrate into your tooling, just make sure to disable the default-feature flags.

cargo add cargo-packager --no-default-features

Feature flags

  • cli: Enables the cli specifc features and dependencies. Enabled by default.
  • tracing: Enables tracing crate integration.

NPM (Node.js)

Checkout the packager NPM cli README

Examples

The examples directory contains a number of varying examples, if you want to build them all run cargo r -p cargo-packager -- --release in the root of this repository. Just make sure to have the tooling for each example installed on your system. You can find what tooling they require by checking the README in each example. The README also contains a command to build this example alone if you wish.

Examples list (non-exhaustive):

Licenses

MIT or MIT/Apache 2.0 where applicable.

Similar Projects

Discover other similar projects and AI models.

RepositoryJava
i-net-software/SetupBuilder

Gradle plugin for building setups for different platforms.

93
Aug 5, 2026
RepositoryJavaScript
brentvollebregt/auto-py-to-exe

Converts .py to .exe using a simple graphical interface

5.0k
Nov 19, 2026
RepositoryJavaScript
ilysenko/codex-desktop-linux

Unofficial ChatGPT desktop app for Linux (formerly the Codex app), built locally from OpenAI’s official macOS app. Includes Chat, Work, and Codex. Packages for Debian/Ubuntu (.deb), Fedora/openSUSE (.rpm), Arch (pacman), Nix/NixOS, and AppImage, with Wayland and X11 support.

3.9k
Dec 1, 2026
RepositoryShell
swizzin/swizzin

A simple, modular seedbox solution

2.4k
Sep 7, 2026
RepositoryShell
wimpysworld/deb-get

apt-get for .debs published via GitHub or direct download 📦

1.8k
Nov 30, 2026
RepositoryShell
ivan-hc/AM

AppImage Package Manager: AppImage sandboxing, local and system installation, update all AppImages, an extensible database of AppImages and portable apps, lists for AppImages and other GNU/Linux binaries, integrate AppImages by drag/drop or install unlisted AppImages, conversion of old AppImage types... and more! Manage AppImages like never before!

1.5k
Dec 1, 2026
RepositoryJavaScript
patrickjaja/claude-desktop-extra

Unofficial Linux packages for Claude Desktop AI assistant with automated updates.

788
Nov 25, 2026
RepositoryTypeScript
Zhou-Yujing114514/deepseek-harness-linux

First-class Linux packaging for DeepSeek Harness desktop — AppImage, .deb, .tar.gz for x64/arm64, built by native CI.

212
Nov 24, 2026
Repository
pkgforge/soarpkgs

Official Soar Packages Repository

151
Nov 29, 2026