feat: Download windows cli archive in desktop

This commit is contained in:
Susmitha Girumala committed 2021-05-17 09:23:30 -04:00
1 parent 685ddeac7e
commit bcf27ae048
3 files changed
+17 -3

No files matched your search

+6 -1
View File
@@ -1,7 +1,12 @@
const path = require('path');
const os = require('os');
const { spawnSync } = require('../helpers/spawn-promise.js');
const cliPath = async () => path.resolve(__dirname, '..', '..', 'cli', 'boundary');
const cliPath = async () => {
let cli = 'boundary';
if(os.type().match(/(windows)/i)) cli = 'boundary.exe';
return path.resolve(__dirname, '..', 'cli', cli);
}
module.exports = {
// Check boundary cli existence