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:
2 files changed
+7
-1
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user