Permalink
Browse files

desktop-app setup and run should work cross-platform

  • Loading branch information...
angelcabo committed Jul 5, 2015
1 parent 9219ddf commit fc57aba7ea30b058dc0a97a690c709edebad8d5c
Showing with 4 additions and 4 deletions.
  1. +2 −2 desktop-app/run.js
  2. +2 −2 desktop-app/setup.js
@@ -44,9 +44,9 @@ var meteor = spawn(meteorCommand);
// ==============
var electronPath = '';
if (osName === 'darwin') {
electronPath = '/cache/electron/electron.app/contents/MacOS/Electron';
electronPath = '/desktop-app/cache/electron/electron.app/contents/MacOS/Electron';
} else {
electronPath = '/cache/electron/electron';
electronPath = '/desktop-app/cache/electron/electron';
}
var electron = exec(base + electronPath + ' ' + base, {async: true});
@@ -70,7 +70,6 @@ console.log('Architecture is ', arch);
var npmFile = 'npm-' + npmVersion + '.zip';
var electronFile = 'electron-v' + electronVersion + '-' + osName + '-x64.zip';
var mongoFile = 'mongodb-' + osName + '-x86_64-' + mongoVersion + '.tgz';
var nodeFile = 'node-v' + nodeVersion + '-' + osName + '-x64.tar.gz';
cd(base);
@@ -101,11 +100,12 @@ if (!test('-f', electronFile)) {
}
}
var os = osName === 'darwin' ? 'osx' : osName;
var mongoFile = 'mongodb-' + os + '-x86_64-' + mongoVersion + '.tgz';
echo('mongoFile = ' + mongoFile);
if (!test('-f', mongoFile)) {
echo('-----> Downloading MongoDB... (version: ' + mongoVersion + ')');
var os = osName === 'darwin' ? 'osx' : osName;
var mongoCurl = 'curl -L -o '
+ mongoFile
+ ' https://fastdl.mongodb.org/'

0 comments on commit fc57aba

Please sign in to comment.