Build app for both platforms (#249)

* binary: check platform, throw exception on mismatch

* binary: build script actually builds linux platform app

* zip from Mac both linux and darwin apps

* quiet npm installs during builds
This commit is contained in:
Gleb Bahmutov
2017-06-30 16:50:05 -04:00
committed by GitHub
parent 54384d1dba
commit de305db260
7 changed files with 39 additions and 12 deletions

View File

@@ -29,10 +29,10 @@ npmRun = (args, cwd) ->
reject(new Error(msg))
runAllBuildJs = _.partial(npmRun, ["run", "all", "build-js"])
runAllBuildJs = _.partial(npmRun, ["run", "all", "build-js", "--skip-packages", "cli,docs"])
# removes transpiled JS files in the original package folders
runAllCleanJs = _.partial(npmRun, ["run", "all", "clean-js"])
runAllCleanJs = _.partial(npmRun, ["run", "all", "clean-js", "--skip-packages", "cli,docs"])
# builds all the packages except for cli and docs
runAllBuild = _.partial(npmRun,
@@ -100,7 +100,7 @@ npmInstallAll = (pathToPackages) ->
retryNpmInstall = (pkg) ->
npmInstall = _.partial(npmRun, ["install", "--production"])
npmInstall = _.partial(npmRun, ["install", "--production", "--quiet"])
npmInstall(pkg)
.catch {code: "EMFILE"}, ->
Promise
@@ -114,7 +114,7 @@ npmInstallAll = (pathToPackages) ->
## prunes out all of the devDependencies
## from what was copied
retryGlobbing()
.map(retryNpmInstall)
.mapSeries(retryNpmInstall)
.then ->
console.log("Finished NPM Installing", new Date() - started)