mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 13:44:41 +08:00
9 lines
350 B
JavaScript
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);
|