Skip to main content

check_dmg

Function check_dmg 

Source
pub fn check_dmg(
    dmg: &Path,
    sha256: &str,
    version: &str,
    own_dir: &Path,
    data_dir: &Path,
    channel_dir: &Path,
) -> Result<MacUpgrade, String>
Expand description

Check what srv names for a macOS upgrade to version: that version’s .dmg, in this version’s own updates/<v>/, whole by the release’s sha256, and an app here that can be replaced. own_dir is the launcher’s folder (AgentMux.app/Contents/MacOS), channel_dir this channel’s data folder, whose name is the channel the new version keeps.