/** * Add event listeners... */ app.on('window-all-closed', () => { // Respect the OSX convention of having the application in memory even // after all windows have been closed if (process.platform !== 'darwin') { app.quit(); } });
gulp.task('changelog', cb => { let githubChanges = spawn(require('path').join('node_modules', '.bin', 'github-changes') + (process.platform === 'win32' ? '.cmd' : ''), ['-o', 'willyb321', '-r', 'media_mate', '-b', 'develop', '--use-commit-body', '-k', `${process.env.GH_TOKEN || process.env.GITHUB_TOKEN}`]); githubChanges.stdout.on('data', (data) => { console.log(`stdout: ${data}`); }); githubChanges.stderr.on('data', (data) => { console.log(`stderr: ${data}`); }); githubChanges.on('close', (code) => { console.log(`github-changes exited with code ${code}`); cb(); }); });
(process.env.NODE_PATH || '') .split(process.platform === 'win32' ? ';' : ':') .filter(Boolean) .filter(folder => !path.isAbsolute(folder)) .map(resolveApp)
get appliesToHostPlatform() { return process.platform === 'darwin'; }
function copy(pathFrom, pathTo) { try { cpFile.sync(pathFrom, pathTo); } catch (err) { // Windows lets us create files and folders under C:\Windows\Temp, // but when you try to `copySync` into one of those folders, you get EPERM // Ignore for now... if (process.platform !== 'win32' || err.code !== 'EPERM') { throw err; } console.log('ignoring windows copy EPERM error', err); } }
// Quit when all windows are closed. app.on('window-all-closed', function() { // On OS X it is common for applications and their menu bar // to stay active until the user quits explicitly with Cmd + Q if (process.platform !== 'darwin') { app.quit() } })
// Quit when all windows are closed. app.on('window-all-closed', function () { // On OS X it is common for applications and their menu bar // to stay active until the user quits explicitly with Cmd + Q if (process.platform !== 'darwin') { app.quit() } })
/** * Add event listeners... */ app.on('window-all-closed', () => { // Respect the OSX convention of having the application in memory even // after all windows have been closed if (process.platform !== 'darwin') { app.quit(); } });
/** * Add event listeners... */ app.on('window-all-closed', () => { // Respect the OSX convention of having the application in memory even // after all windows have been closed if (process.platform !== 'darwin') { app.quit(); } });
// Quit application when all windows are closed app.on('window-all-closed', () => { // On macOS it is common for applications to stay open // until the user explicitly quits if (process.platform !== 'darwin') app.quit(); });
/** * Add event listeners... */ app.on('window-all-closed', () => { // Respect the OSX convention of having the application in memory even // after all windows have been closed if (process.platform !== 'darwin') { app.quit(); } });
/** * Add event listeners... */ app.on('window-all-closed', () => { // Respect the OSX convention of having the application in memory even // after all windows have been closed if (process.platform !== 'darwin') { app.quit(); } });
/** * When all windows are closed, quit the app. */ app.on('window-all-closed', () => { if (process.platform !== 'darwin') { app.quit(); } RSS = null; });
// Quit when all windows are closed. app.on('window-all-closed', () => { // On macOS it is common for applications and their menu bar // to stay active until the user quits explicitly with Cmd + Q if (process.platform !== 'darwin') { app.quit() } });
/** * Add event listeners... */ app.on('window-all-closed', () => { // Respect the OSX convention of having the application in memory even // after all windows have been closed if (process.platform !== 'darwin') { app.quit(); } });