Force update should skip version check
This commit is contained in:
@@ -73,7 +73,12 @@ async function checkForUpdatesMaybeInstall(
|
|||||||
|
|
||||||
const { fileName: newFileName, version: newVersion } = result;
|
const { fileName: newFileName, version: newVersion } = result;
|
||||||
|
|
||||||
if (fileName !== newFileName || !version || gt(newVersion, version)) {
|
if (
|
||||||
|
force ||
|
||||||
|
fileName !== newFileName ||
|
||||||
|
!version ||
|
||||||
|
gt(newVersion, version)
|
||||||
|
) {
|
||||||
const autoDownloadUpdates = await getAutoDownloadUpdateSetting(
|
const autoDownloadUpdates = await getAutoDownloadUpdateSetting(
|
||||||
getMainWindow(),
|
getMainWindow(),
|
||||||
logger
|
logger
|
||||||
|
@@ -76,7 +76,12 @@ async function checkForUpdatesMaybeInstall(
|
|||||||
|
|
||||||
const { fileName: newFileName, version: newVersion } = result;
|
const { fileName: newFileName, version: newVersion } = result;
|
||||||
|
|
||||||
if (fileName !== newFileName || !version || gt(newVersion, version)) {
|
if (
|
||||||
|
force ||
|
||||||
|
fileName !== newFileName ||
|
||||||
|
!version ||
|
||||||
|
gt(newVersion, version)
|
||||||
|
) {
|
||||||
const autoDownloadUpdates = await getAutoDownloadUpdateSetting(
|
const autoDownloadUpdates = await getAutoDownloadUpdateSetting(
|
||||||
getMainWindow(),
|
getMainWindow(),
|
||||||
logger
|
logger
|
||||||
|
Reference in New Issue
Block a user