Crates.io | takecrate |
lib.rs | takecrate |
version | 1.1.0 |
source | src |
created_at | 2024-10-04 15:23:18.071132 |
updated_at | 2024-11-06 20:04:14.392105 |
description | Adds installer functionality to standalone binaries for distribution of CLI applications |
homepage | |
repository | https://github.com/chfoo/takecrate |
max_upload_size | |
id | 1396698 |
size | 202,455 |
Rust library for adding installer functionality to standalone binaries.
This crate enables CLI applications to be distributed as standalone binaries that can install and uninstall themselves.
let app_id = AppId::new("com.example.my-app").unwrap();
let manifest = PackageManifest::new(&app_id).with_self_exe().unwrap();
if exe_name.ends_with("_installer") {
takecrate::install_interactive(&manifest).unwrap();
}
This crate aims to be a safe and easy way for users to use binaries by automating the file copying and search path modification.
Supported OS families: unix (macOS and Linux), windows.
In addition, notable quality of life features include:
Copyright 2024 Christopher Foo. Licensed under Mozilla Public License 2.0