Merge pull request #758 from hashicorp/add-app-updater-feature-bypass-flag

chore: Add dev flag to disable app updater prompts - desktop
This commit is contained in:
Susmitha Girumala authored and GitHub committed 2021-09-16 14:56:13 -04:00
commit 7a16aba50e
2 files changed
+7 -1

No files matched your search

+2 -1
View File
@@ -87,7 +87,8 @@ These environment variables may be used to customized the build.
| `APP_UPDATER_CURRENT_VERSION` | Version of client. |
| `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` | Enable to disallow download and extraction of cli. For development use only. |
| `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.