From bf43633560252c4b11c00cb028676d9a7b1968b8 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Thu, 18 Apr 2019 10:14:51 -0400 Subject: add icons --- electron/src/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'electron/src/main.js') diff --git a/electron/src/main.js b/electron/src/main.js index 2774ddc6..210e26ed 100644 --- a/electron/src/main.js +++ b/electron/src/main.js @@ -1,5 +1,7 @@ import { app, BrowserWindow, ipcMain, dialog } from 'electron'; var fs = require('fs'); +var path = require('path') +var tmp = require('tmp') // Keep a global reference of the window object, if you don't, the window will // be closed automatically when the JavaScript object is garbage collected. @@ -7,7 +9,7 @@ let mainWindow; const createWindow = () => { // Create the browser window. - mainWindow = new BrowserWindow(); + mainWindow = new BrowserWindow({icon: path.join(__dirname, 'assets/icons/png/512x512.png')}); mainWindow.maximize(); -- cgit v1.2.3