electron-updater
Advanced tools
Comparing version 5.2.4 to 5.3.0
@@ -36,2 +36,7 @@ /// <reference types="node" /> | ||
/** | ||
* *windows-only* Whether to run the app after finish install when run the installer NOT in silent mode. | ||
* @default true | ||
*/ | ||
autoRunAppAfterInstall: boolean; | ||
/** | ||
* *GitHub provider only.* Whether to allow update to pre-release versions. Defaults to `true` if application version contains prerelease components (e.g. `0.12.1-alpha.1`, here `alpha` is a prerelease component), otherwise `false`. | ||
@@ -156,3 +161,4 @@ * | ||
* @param isSilent *windows-only* Runs the installer in silent mode. Defaults to `false`. | ||
* @param isForceRunAfter Run the app after finish even on silent install. Not applicable for macOS. Ignored if `isSilent` is set to `false`. | ||
* @param isForceRunAfter Run the app after finish even on silent install. Not applicable for macOS. | ||
* Ignored if `isSilent` is set to `false`(In this case you can still set `autoRunAppAfterInstall` to `false` to prevent run the app after finish). | ||
*/ | ||
@@ -159,0 +165,0 @@ abstract quitAndInstall(isSilent?: boolean, isForceRunAfter?: boolean): void; |
@@ -30,2 +30,7 @@ "use strict"; | ||
/** | ||
* *windows-only* Whether to run the app after finish install when run the installer NOT in silent mode. | ||
* @default true | ||
*/ | ||
this.autoRunAppAfterInstall = true; | ||
/** | ||
* *GitHub provider only.* Whether to allow update to pre-release versions. Defaults to `true` if application version contains prerelease components (e.g. `0.12.1-alpha.1`, here `alpha` is a prerelease component), otherwise `false`. | ||
@@ -32,0 +37,0 @@ * |
@@ -13,3 +13,4 @@ "use strict"; | ||
this._logger.info(`Install on explicit quitAndInstall`); | ||
const isInstalled = this.install(isSilent, isSilent ? isForceRunAfter : true); | ||
// If NOT in silent mode use `autoRunAppAfterInstall` to determine whether to force run the app | ||
const isInstalled = this.install(isSilent, isSilent ? isForceRunAfter : this.autoRunAppAfterInstall); | ||
if (isInstalled) { | ||
@@ -16,0 +17,0 @@ setImmediate(() => { |
{ | ||
"name": "electron-updater", | ||
"version": "5.2.4", | ||
"version": "5.3.0", | ||
"description": "Cross platform updater for electron applications", | ||
@@ -5,0 +5,0 @@ "main": "out/main.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
421339
3854