'use strict';

var app = require('app');
var shortcut = require('./shortcut.js');

require('crash-reporter').start();

// Keep a global reference to prevent being GCed.
var mainWindow = null;
var trayIcon = null;

// Main in the main process
app.on('ready', function() {
	mainWindow = require('./main-window-init.js').createMainWindow();
	trayIcon = require('./tray.js').createTray();
	require('./menu.js').createMenu();
	shortcut.registerQuit();
});

app.on('will-quit', function() {
	shortcut.unregisterAll();
});

@@ -378,16 +378,55 @@
 Tray();%0A
+%0A%09if (process.platform == 'darwin') %7B%0A%09
 %09require
@@ -453,16 +453,21 @@
 Menu();%0A
+%09%7D%0A%09%0A
 %09shortcu

Add platform check when making menu