preperations for update dialog

This commit is contained in:
HorizonCode committed 2024-01-19 16:24:39 +01:00
1 parent 61d5182854
commit 8d61a8b2b7
7 files changed
+60 -9

No files matched your search

+5 -2
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 };
}
},
};