cargo-crapapp 0.2.0

Cargo subcommand for building CRAP app installers and self-contained app bundles
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use clap::Parser;

use crate::windows_installer::InstallerConfig;

#[derive(Debug, Parser)]
#[command(name = "uninstall")]
#[command(about = "Uninstall the packaged application")]
struct Cli {}

pub fn run(
    config: &'static [u8],
    payload: &'static [u8],
    uninstaller: &'static [u8],
) -> Result<(), String> {
    let _args = Cli::parse();
    let config = InstallerConfig::new(config, payload, uninstaller)?;
    crate::windows_installer::cli::commands::uninstall(&config)
}