feat: Download windows cli archive in desktop
This commit is contained in:
1 parent
685ddeac7e
commit
bcf27ae048
3 files changed
+17
-3
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user