From ea7ecaa681160556c941b533289146a809edced2 Mon Sep 17 00:00:00 2001 From: troyeguo <13820674+troyeguo@users.noreply.github.com> Date: Sat, 17 Jul 2021 21:39:30 +0800 Subject: [PATCH] fix bug Former-commit-id: 97ce0039f1e1a27bd9d9dd231298d73f808d98c3 --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 24521f13..88a14d8c 100644 --- a/main.js +++ b/main.js @@ -31,7 +31,7 @@ app.on("ready", () => { nodeIntegrationInSubFrames: true, allowRunningInsecureContent: true, }, - icon: nativeImage.createFromPath("assets/icons/256x256.png"), + icon: path.join(__dirname, "assets", "icons", "256x256.png"), }; mainWin = new BrowserWindow(option); @@ -64,7 +64,7 @@ app.on("ready", () => { nodeIntegrationInSubFrames: true, allowRunningInsecureContent: true, }, - icon: nativeImage.createFromPath("assets/icons/256x256.png"), + icon: path.join(__dirname, "assets", "icons", "256x256.png"), }; let pdfLocation = isDev