respect out parameter in packager.js

This commit is contained in:
Stephen Birarda 2016-01-04 16:33:38 -08:00
parent 5e762a4b95
commit 7dc8593d64

View file

@ -39,6 +39,12 @@ if (osType == "Darwin") {
options["name"] = "server-console"
}
// check if we were passed a custom out directory, pass it along if so
var argv = require('yargs').argv;
if (argv.out) {
options.out = argv.out
}
// call the packager to produce the executable
packager(options, function(error, appPath){
console.log("Wrote new app to " + appPath);