cargo-crapapp 0.4.2

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
use crate::windows_installer::Eula;

use super::DialogSpec;

pub(super) fn dialog((index, eula): (usize, &Eula)) -> DialogSpec {
    DialogSpec {
        id: format!("LicenseDlg{}", index + 1),
        first_control: "LicenseText".to_owned(),
        default_control: "Next".to_owned(),
        cancel_control: "Cancel".to_owned(),
        title: format!("License Agreement - {}", eula.name),
        modeless: false,
    }
}