Mailspring/build/resources/win/nylas-win-bootup.js
2016-02-09 11:43:30 -08:00

9 lines
350 B
JavaScript

var path = require('path');
var spawn = require('child_process').spawn;
var nylasCommandPath = path.resolve(__dirname, '..', '..', 'nylas.exe');
var arguments = process.argv.slice(2);
arguments.unshift('--executed-from', process.cwd());
var options = {detached: true, stdio: 'ignore'};
spawn(nylasCommandPath, arguments, options);
process.exit(0);