diff --git a/src/update-checker.js b/src/update-checker.js index 7c65fa74..e867d2f3 100644 --- a/src/update-checker.js +++ b/src/update-checker.js @@ -13,11 +13,13 @@ async function checkNewVersion() { // Draft releases and prereleases are not returned by this endpoint. const res = (await repo.getRelease('latest')).data; const tagName = res.tag_name; - console.log(tagName); const currentVersion = app.getVersion(); // const currentVersion = '1.8.0'; + console.log('Current version', currentVersion); + console.log('Newest version', tagName); + if (tagName !== `v${currentVersion}`) return tagName; return undefined; } catch (e) {