Tauri Bundler

Wrap Rust executables in OS-specific app bundles.

About

This is a fork of the awesome cargo-bundle, turned into a library used by the Tauri CLI.

Configuration

Tauri automatically loads configurations from the tauri.conf.json > tauri > bundle object, but this library doesn't rely on it and can be used by non-Tauri apps.

General settings

These settings apply to bundles for all (or most) OSes.

Debian-specific settings

These settings are used only when bundling deb packages.

Mac OS X-specific settings

These settings are used only when bundling app and dmg packages.

Example tauri.conf.json:

json { "package": { "productName": "Your Awesome App", "version": "0.1.0" }, "tauri": { "bundle": { "active": true, "identifier": "com.my.app", "shortDescription": "", "longDescription": "", "copyright": "Copyright (c) You 2021. All rights reserved.", "icon": [ "icons/32x32.png", "icons/128x128.png", "icons/128x128@2x.png", "icons/icon.icns", "icons/icon.ico" ], "resources": ["./assets/**/*.png"], "deb": { "depends": ["debian-dependency1", "debian-dependency2"] }, "macOS": { "frameworks": [], "minimumSystemVersion": "10.11", "license": "./LICENSE" }, "externalBin": ["./sidecar-app"] } } }

License

(c) 2017 - present, George Burton, Tauri-Apps Organization

This program is licensed either under the terms of the Apache Software License, or the MIT License.

-> note, for bundle_dmg we have included a BSD 3 licenced binary seticon. https://github.com/sveinbjornt/osxiconutils/blob/master/seticon.m tools/rust/cargo-tauri-bundle/src/bundle/templates/seticon