Merge pull request #537 from hashicorp/bump-cli-0-2-0

Bump cli to 0.2.0
This commit is contained in:
Susmitha Girumala authored and GitHub committed 2021-04-15 09:27:34 -04:00
commit 6e4ab7d881
2 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ const https = require('https');
const decompress = require('decompress');
const os = require('os');
const artifactVersion = '0.1.8';
const artifactVersion = '0.2.0';
const artifactDestination = path.resolve(__dirname, '..', 'cli');
const downloadArtifact = version => {
+4 -3
View File
@@ -4,11 +4,12 @@ const https = require('https');
const semver = require('semver');
const { parse } = require('node-html-parser');
const { autoUpdater, dialog } = require('electron');
const { releaseVersion } = require('../config/forge.config.js');
// TODO: Pickup app release version from config file
// const { releaseVersion } = require('../config/forge.config.js');
const debug = process.env.DEBUG_APP_UPDATER;
const releasesUrl = 'https://releases.hashicorp.com/boundary-desktop/';
let currentVersion = releaseVersion;
let currentVersion = '1.0.0';
if (debug && process.env.APP_UPDATER_CURRENT_VERSION) {
currentVersion = process.env.APP_UPDATER_CURRENT_VERSION;
}
@@ -143,7 +144,7 @@ module.exports = {
const location = process.env.APP_UPDATER_LATEST_VERSION_LOCATION;
if (debug && location) {
// Support hosted url and file paths
displayDownloadPrompt(latestVersion, location.match(/^https/i) ? location : `file://${location}`);
displayDownloadPrompt(latestVersion, location.match(/^http/i) ? location : `file://${location}`);
return;
}