mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 19:26:33 +00:00
commit
e0b26d455c
@ -200,7 +200,7 @@ function storeReducer(
|
|||||||
constraints.isDriveValid(drive, image) &&
|
constraints.isDriveValid(drive, image) &&
|
||||||
!drive.isReadOnly &&
|
!drive.isReadOnly &&
|
||||||
constraints.isDriveSizeRecommended(drive, image) &&
|
constraints.isDriveSizeRecommended(drive, image) &&
|
||||||
// We don't want to auto-select large drives execpt is autoSelectAllDrives is true
|
// We don't want to auto-select large drives except if autoSelectAllDrives is true
|
||||||
(!constraints.isDriveSizeLarge(drive) || shouldAutoselectAll) &&
|
(!constraints.isDriveSizeLarge(drive) || shouldAutoselectAll) &&
|
||||||
// We don't want to auto-select system drives
|
// We don't want to auto-select system drives
|
||||||
!constraints.isSystemDrive(drive)
|
!constraints.isSystemDrive(drive)
|
||||||
|
@ -52,7 +52,7 @@ async function checkForUpdates(interval: number) {
|
|||||||
const release = await autoUpdater.checkForUpdates();
|
const release = await autoUpdater.checkForUpdates();
|
||||||
const isOutdated =
|
const isOutdated =
|
||||||
semver.compare(release!.updateInfo.version, version) > 0;
|
semver.compare(release!.updateInfo.version, version) > 0;
|
||||||
const shouldUpdate = release!.updateInfo.stagingPercentage !== 0; // undefinded (default) means 100%
|
const shouldUpdate = release!.updateInfo.stagingPercentage !== 0; // undefined (default) means 100%
|
||||||
if (shouldUpdate && isOutdated) {
|
if (shouldUpdate && isOutdated) {
|
||||||
await autoUpdater.downloadUpdate();
|
await autoUpdater.downloadUpdate();
|
||||||
packageUpdated = true;
|
packageUpdated = true;
|
||||||
|
@ -108,7 +108,7 @@ export interface FlashResults extends WriteResult {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @summary writes the source to the destinations and valiates the writes
|
* @summary writes the source to the destinations and validates the writes
|
||||||
* @param {SourceDestination} source - source
|
* @param {SourceDestination} source - source
|
||||||
* @param {SourceDestination[]} destinations - destinations
|
* @param {SourceDestination[]} destinations - destinations
|
||||||
* @param {Boolean} verify - whether to validate the writes or not
|
* @param {Boolean} verify - whether to validate the writes or not
|
||||||
|
Loading…
x
Reference in New Issue
Block a user