Force update should skip version check
This commit is contained in:
parent
bcf1640587
commit
f2ba9e1a9b
2 changed files with 12 additions and 2 deletions
|
@ -73,7 +73,12 @@ async function checkForUpdatesMaybeInstall(
|
|||
|
||||
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(
|
||||
getMainWindow(),
|
||||
logger
|
||||
|
|
|
@ -76,7 +76,12 @@ async function checkForUpdatesMaybeInstall(
|
|||
|
||||
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(
|
||||
getMainWindow(),
|
||||
logger
|
||||
|
|
Loading…
Reference in a new issue