[MM-44344] Restore zip build for Windows and remove auto-updater from it (#2132)

This commit is contained in:
Devin Binnie
2022-05-27 09:32:27 -04:00
committed by GitHub
parent 8979c18226
commit 42a53e31b5
4 changed files with 36 additions and 0 deletions

View File

@@ -41,6 +41,12 @@ function checkWriteableApp() {
if (process.platform === 'win32') {
try {
fs.accessSync(path.join(path.dirname(app.getAppPath()), '../../'), fs.constants.W_OK);
// check to make sure that app-update.yml exists
if (!fs.existsSync(path.join(process.resourcesPath, 'app-update.yml'))) {
log.warn('app-update.yml does not exist, disabling auto-updates');
return false;
}
} catch (error) {
log.info(`${app.getAppPath()}: ${error}`);
log.warn('autoupgrade disabled');