14 个不稳定版本 (4 个破坏性更新)

0.4.0 2020 年 6 月 27 日
0.3.1 2020 年 6 月 18 日
0.3.0 2019 年 10 月 1 日
0.2.0 2019 年 10 月 1 日
0.0.1 2018 年 12 月 31 日

#77macOS 和 iOS API

每月 34 次下载
用于 cargo-app

Zlib 许可证

13KB
344 代码行

packapp

将二进制文件打包成 MacOS .app 格式

用法

USAGE:
    packapp [OPTIONS] <bin>

Options:
    --res             stuff to copy into the "Resources" folder
    --framework       stuff to copy into the "Frameworks" folder
    --icon            icon file
    --ident           app identifier
    --name            app name
    --display-name    app display name
    --version         app version
    --agent           if app is agent (won't show icon in dock)
    --high-res        if app should render in high resolution
    --filetype        file types that can be opened with this bundle
    --out             output path
    --verbose         verbose output
    --help            display usage information

ARGS:
    <bin>

安装

使用 homebrew

$ brew install slmjkdbtl/formulae/packapp

或使用 crates.io

$ cargo install packapp

或克隆并本地构建

$ git clone https://github.com/slmjkdbtl/packapp
$ cd packapp
$ cargo install --force --path .

或前往 发布 选项卡手动下载

示例

打包无设置的二进制文件

packapp yo

有设置

packapp --identifier com.company.yo --name yo --display-name YO --icon icon.icns --version "1.0.0" yo

依赖

~4.5MB
~86K SLoC