[MM-44344] Restore zip build for Windows and remove auto-updater from it (#2132)
This commit is contained in:
@@ -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');
|
||||
|
Reference in New Issue
Block a user