'use strict'
const app = require('app')
const BrowserWindow = require('browser-window')
const ipc = require('ipc')
const Menu = require('menu')
const menuTemplate = require('./menu-template.js')

require('electron-debug')()

let mainWindow = null

function onClosed () {
  mainWindow = null
}

function createMainWindow () {
  const win = new BrowserWindow({
    width: 920,
    height: 700,
    center: true,
    'standard-window': false,
    frame: false,
	icon: './img/icon.png',
    title: 'Blox Party'
  })
  win.loadUrl('file://' + __dirname + '/index.html')
  win.on('closed', onClosed)
  return win
}

ipc.on('quit', function () {
  app.quit()
})

app.on('window-all-closed', () => {
  if (process.platform !== 'darwin') app.quit()
})

app.on('activate-with-no-open-windows', () => {
  if (!mainWindow) mainWindow = createMainWindow()
})

app.on('ready', () => {
  // Build menu only for OSX
  if (Menu.sendActionToFirstResponder) {
    Menu.setApplicationMenu(Menu.buildFromTemplate(menuTemplate))
  }
  mainWindow = createMainWindow()
})

'use strict'
const app = require('app')
const BrowserWindow = require('browser-window')
const ipc = require('ipc')
const Menu = require('menu')
const menuTemplate = require('./menu-template.js')

require('electron-debug')()

let mainWindow = null

function onClosed () {
  mainWindow = null
}

function createMainWindow () {
  const win = new BrowserWindow({
    width: 920,
    height: 700,
    center: true,
    'standard-window': false,
    frame: false,
	icon: __dirname + '/img/icon.png',
    title: 'Blox Party'
  })
  win.loadUrl('file://' + __dirname + '/index.html')
  win.on('closed', onClosed)
  return win
}

ipc.on('quit', function () {
  app.quit()
})

app.on('window-all-closed', () => {
  if (process.platform !== 'darwin') app.quit()
})

app.on('activate-with-no-open-windows', () => {
  if (!mainWindow) mainWindow = createMainWindow()
})

app.on('ready', () => {
  // Build menu only for OSX
  if (Menu.sendActionToFirstResponder) {
    Menu.setApplicationMenu(Menu.buildFromTemplate(menuTemplate))
  }
  mainWindow = createMainWindow()
})

Fix link path