preperations for update dialog

This commit is contained in:
2024-01-19 16:24:39 +01:00
parent 61d5182854
commit 8d61a8b2b7
7 changed files with 60 additions and 9 deletions

View File

@@ -10,9 +10,12 @@ module.exports = {
const latestRelease = await fetch(repoUrl);
const json = await latestRelease.json();
if (json.length <= 0) return false;
return semver.lt(appVersion, json[0].tag_name);
return {
update: semver.lt(appVersion, json[0].tag_name),
release: json[0],
};
} catch (err) {
return false;
return { update: false };
}
},
};