Skip to main content

launch

Function launch 

Source
pub fn launch(
    shipped: Bundle,
    resources: &Path,
    support_dir: Option<&Path>,
) -> Launch
Expand description

Picks what a packaged app runs: shipped, the bundle in its resources directory resources (nsh, holding assets/nsh-updater.json), or a newer signed package from its updates when its nsh.json trusts package roots ("updater": { "packages": { "roots": [...] } }) and support_dir is its engine’s crate::EngineConfig::support_dir. Never fails: any problem with a package is logged and the shipped bundle runs.