diff --git a/__tests__/util/reset b/__tests__/util/reset index 01f01d5b..8008f168 100755 --- a/__tests__/util/reset +++ b/__tests__/util/reset @@ -2,9 +2,11 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +sudo rm -f /usr/local/bin/docker +sudo rm -f /usr/local/bin/boot2docker rm -rf ~/Library/Application\ Support/Kitematic/ +rm -rf ~/.boot2docker +rm -rf ~/VirtualBox\ VMs/boot2docker-vm pkill VBox pkill VirtualBox $DIR/VirtualBox_Uninstall.tool -rm -rf ~/.boot2docker -rm -rf ~/VirtualBox\ VMs/boot2docker-vm diff --git a/src/Setup.react.js b/src/Setup.react.js index 2e19bc96..9189d7cd 100644 --- a/src/Setup.react.js +++ b/src/Setup.react.js @@ -48,7 +48,7 @@ var Setup = React.createClass({ } return (
- +
@@ -97,7 +97,7 @@ var Setup = React.createClass({
- +
diff --git a/src/SetupStore.js b/src/SetupStore.js index e7f8dcbc..73923a73 100644 --- a/src/SetupStore.js +++ b/src/SetupStore.js @@ -40,6 +40,10 @@ var _steps = [{ if (!virtualBox.installed() || setupUtil.compareVersions(yield virtualBox.version(), packagejson['virtualbox-required-version']) < 0) { yield virtualBox.killall(); cmd += ' && ' + setupUtil.installVirtualBoxCmd(); + } else { + if (!setupUtil.needsBinaryFix()) { + return; + } } try { progressCallback(50); // TODO: detect when the installation has started so we can simulate progress @@ -139,7 +143,7 @@ var SetupStore = assign(Object.create(EventEmitter.prototype), { var required = {}; var vboxfile = path.join(util.supportDir(), packagejson['virtualbox-filename']); required.download = !virtualBox.installed() && (!fs.existsSync(vboxfile) || setupUtil.checksum(vboxfile) !== packagejson['virtualbox-checksum']); - required.install = !virtualBox.installed() || setupUtil.needsBinaryFix(); + required.install = !virtualBox.installed() || setupUtil.needsBinaryFix() || setupUtil.compareVersions(yield virtualBox.version(), packagejson['virtualbox-required-version']) < 0; required.init = !(yield boot2docker.exists()) || !isoversion || setupUtil.compareVersions(isoversion, boot2docker.version()) < 0; required.start = required.init || (yield boot2docker.status()) !== 'running'; @@ -181,9 +185,9 @@ var SetupStore = assign(Object.create(EventEmitter.prototype), { step.percent = 100; break; } catch (err) { + console.log('Setup encountered an error.'); + console.log(err); if (err) { - console.log(err); - console.log(err.stack); _error = err; this.emit(this.ERROR_EVENT); } else { diff --git a/styles/setup.less b/styles/setup.less index 5877f31c..35a5c7f6 100644 --- a/styles/setup.less +++ b/styles/setup.less @@ -15,6 +15,11 @@ padding-right: 40px; padding-left: 80px; + img { + width: 399px; + height: 340px; + } + .contents { position: relative; .detail {