chore: Add dev flag to disable app updater prompts - desktop

This commit is contained in:
Susmitha Girumala committed 2021-09-16 10:56:51 -04:00
1 parent fabab3e36c
commit 469c1b7a6e
2 files changed
+6

No files matched your search

+1
View File
@@ -78,6 +78,7 @@ These environment variables may be used to customized the build.
| `APP_UPDATER_LATEST_VERSION_TAG` | Next version for comparison with current version. |
| `APP_UPDATER_LATEST_VERSION_LOCATION` | Location of app release to use for updating client. Can be a filepath or url. |
| `BYPASS_CLI_SETUP` | Disable download and extraction of cli. For development use only. |
| `BYPASS_APP_UPDATER` | Disable app updater feature. For development use only. |
### Building for Production
@@ -124,6 +124,11 @@ const displayDownloadPrompt = (version, url) => {
**/
module.exports = {
run: async ({ suppressNoUpdatePrompt } = {}) => {
/**
* Ignore app updater prompts.
*/
if (process.env.BYPASS_APP_UPDATER) return;
/**
* Disable app updater check for linux as update is unsupported.
* TODO: Enable for windows pending feature dev. Windows is supported.