Skip to content

Commit 119b546

Browse files
committed
JBDS-4174 Install Vagrant and Virtualbox on macOS
Fix changes location set for install options. On windows location stays the same, but on macOS both Vagrant and Virtualbox adds soft links into /usr/loca/bin directory.
1 parent 261e0b2 commit 119b546

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

browser/model/vagrant.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ class VagrantInstall extends InstallableItem {
5959
this.validateVersion();
6060
done();
6161
}).catch((error) => {
62-
this.addOption('install',this.version,path.join(this.installerDataSvc.installRoot,'vagrant'),true);
62+
let installLocation = Platform.identify({
63+
win32: ()=>path.join(this.installerDataSvc.installRoot,'vagrant'),
64+
default: ()=>'/usr/local'
65+
});
66+
this.addOption('install',this.version,installLocation,true);
6367
done(error);
6468
});
6569
}

browser/model/virtualbox.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,11 @@ class VirtualBoxInstallDarwin extends VirtualBoxInstall {
223223
this.validateVersion();
224224
done();
225225
}).catch(() => {
226-
this.addOption('install',this.version,path.join(this.installerDataSvc.installRoot,'virtualbox'),true);
226+
let installLocation = Platform.identify({
227+
win32: ()=>path.join(this.installerDataSvc.installRoot,'vagrant'),
228+
default: ()=>'/usr/local/bin'
229+
});
230+
this.addOption('install',this.version,installLocation,true);
227231
done();
228232
});
229233
}

0 commit comments

Comments
 (0)