Skip to main content

reinstall_from_folder

Function reinstall_from_folder 

Source
pub fn reinstall_from_folder(
    folder: &Path,
    installed_sha256: &str,
    widgets_root: &Path,
    before_install: impl FnOnce(),
) -> Result<bool, String>
Expand description

Packages a working-tree widget folder and installs it, with the same checks as a catalogue package, when the package differs from installed_sha256. Calls before_install first. Returns whether it installed. Development builds only.