From 0d1a2e59d4e357af2d182d2bfad4d9741781fbae Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Thu, 1 Oct 2020 21:42:30 -0400 Subject: [PATCH] added icon on main windows --- main-electron.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main-electron.js b/main-electron.js index 1249be75..b01d9f0a 100644 --- a/main-electron.js +++ b/main-electron.js @@ -1,3 +1,4 @@ +const { join } = require("path"); const { app, Menu, MenuItem, BrowserWindow, shell } = require("electron"); // Keep a global reference of the window object, if you don't, the window will @@ -10,6 +11,8 @@ function createWindow() { width: 377, height: 800, title: "Sengi", + //icon: join(__dirname, '/src/assets/icons/icon-512x512.png'), + icon: join(__dirname, '/assets/icons/win/icon.ico'), backgroundColor: "#131925", useContentSize: true, webPreferences: {