Rust executable packager, bundler and updater.
https://docs.crabnebula.dev/packager/ ↗// readme
cargo-packager
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…