fix(portative): fix updater check #71

This commit is contained in:
Alexey Kasyanchuk 2019-01-27 00:00:31 +03:00
parent 1e2216c70a
commit e7b85335ed

View File

@ -260,7 +260,13 @@ app.on("ready", async () => {
if(portative)
{
autoUpdater.getUpdateInfo().then(info => {
autoUpdater.getUpdateInfoAndProvider().then(({info}) => {
if(!info)
{
logTE('updater', 'info not provided for updater')
return
}
if(info.version == app.getVersion())
{
logT('updater', 'update not founded for version', app.getVersion())