From 1bbb6eaf3802d4fdc8fb2df3f07e996d72b79d4c Mon Sep 17 00:00:00 2001 From: Mitch Mikusek Date: Sat, 23 May 2020 16:46:16 -0700 Subject: [PATCH] Fix for "Image could not be created error" on macOS When attempting to run the app, an error would occur when attemting to set the browser window platform specific icon. After tweaking to png, the electron app now launches correctly for macOS 10.15.4 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 34446aae..c5c99a10 100644 --- a/index.js +++ b/index.js @@ -195,7 +195,7 @@ function createMenu() { function getPlatformIcon(filename){ const opSys = process.platform if (opSys === 'darwin') { - filename = filename + '.icns' + filename = filename + '.png' } else if (opSys === 'win32') { filename = filename + '.ico' } else {