1 个稳定版本
1.0.0 | 2021年4月13日 |
---|
#2201 在 开发工具
135KB
2.5K SLoC
安装框架
安装框架是一个用于在 Rust 中创建跨平台安装程序的框架。
用法
- 创建一个二进制包(cargo new --bin [安装程序名称])
- 引用主安装框架包(https://crates.io/crates/install-framework)
- 填充一个 InstallerBuilder 并使用您的构建器调用 install_framework::run
- 在您的 Cargo.toml 中应用以下代码
[features]
cli = ["install-framework/cli"]
gui = ["install-framework/gui"]
- 使用
cargo build --features cli
或cargo build --features gui
依赖关系
~7–24MB
~414K SLoC