[MM-45409] Restrict auto-update functionality specifically to the NSIS installer and AppImage (#2177)

* [MM-45409] Restrict auto-update functionality specifically to the NSIS installer and AppImage

* Fixes

* Fix syntax error

* Fixes #2

* Switch PR builds to ZIP

* Fix
This commit is contained in:
Devin Binnie
2022-06-30 12:25:28 -04:00
committed by GitHub
parent 5b93e20ab8
commit e674c5c28e
5 changed files with 15 additions and 8 deletions

View File

@@ -17,7 +17,7 @@ const isRelease = process.env.CIRCLE_BRANCH && process.env.CIRCLE_BRANCH.startsW
const codeDefinitions = {
__HASH_VERSION__: !isRelease && JSON.stringify(VERSION),
__CAN_UPGRADE__: JSON.stringify(true), // we should set this to false when working on a store version. Hardcoding for now.
__CAN_UPGRADE__: JSON.stringify(process.env.CAN_UPGRADE === 'true'),
__IS_NIGHTLY_BUILD__: JSON.stringify(process.env.CIRCLE_BRANCH === 'nightly'),
__IS_MAC_APP_STORE__: JSON.stringify(process.env.IS_MAC_APP_STORE === 'true'),
};