Skip to main content

Function: parseUpdateManifestYaml()

parseUpdateManifestYaml(content, file): UpdateInfo

Parses the text of a latest*.yml the way electron-updater does (js-yaml load, default schema), so a manifest is re-signed or verified over exactly the values the updater will see. Throws an InvalidConfigurationError naming file when the text is not YAML or not a mapping.

Parameters​

content​

string

file​

string

Returns​

UpdateInfo