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
This commit is contained in:
parent
8726638a23
commit
1bbb6eaf38
2
index.js
2
index.js
@ -195,7 +195,7 @@ function createMenu() {
|
|||||||
function getPlatformIcon(filename){
|
function getPlatformIcon(filename){
|
||||||
const opSys = process.platform
|
const opSys = process.platform
|
||||||
if (opSys === 'darwin') {
|
if (opSys === 'darwin') {
|
||||||
filename = filename + '.icns'
|
filename = filename + '.png'
|
||||||
} else if (opSys === 'win32') {
|
} else if (opSys === 'win32') {
|
||||||
filename = filename + '.ico'
|
filename = filename + '.ico'
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user