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;
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue