#cargo #app #cargo-subcommand #pack #subcommand #binary #bundle #macos

app cargo-app

cargo subcommand to generate macos .app bundles

3 unstable releases

✓ Uses Rust 2018 edition

0.1.0 Jan 6, 2019
0.0.1 Jan 3, 2019
0.0.0 Jan 3, 2019

25 downloads per month

Zlib license

7KB
135 lines

cargo-app

cargo subcommand to pack a binary to a MacOS .app bundle

install

Recommended to install with cargo install:

cargo install cargo-app

to update to the latest version:

cargo install cargo-app --force

usage

USAGE:
    cargo-app [SUBCOMMAND]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    help    Prints this message or the help of the given subcommand(s)
    pack    Generate .app bundle according to configs in Cargo.toml

example

generate .app bundle according to configs in Cargo.toml

cargo app pack

config

[package.metadata.app]
# defaults to package name
name         = "yo"
# defaults to package name
display_name = "YO"
# defaults to ""
identifier   = "com.company.yo"
# defaults to ""
icon         = "icon.icns"
# defaults to package version
version      = "0.0.0"
# defaults to "target/x86_64-apple-darwin/release/{{package_name}}"
bin          = "yo"

Dependencies

~3MB
~57K SLoC