Add icon to the window manually on creation (#1735)
This supplements the work we already do to tell the OS about our icon.
This commit is contained in:
3
main.js
3
main.js
@@ -104,7 +104,8 @@ function createWindow () {
|
||||
nodeIntegration: false,
|
||||
//sandbox: true,
|
||||
preload: path.join(__dirname, 'preload.js')
|
||||
}
|
||||
},
|
||||
icon: __dirname + '/build/icons/png/512x512.png',
|
||||
}, windowConfig);
|
||||
|
||||
if (windowOptions.fullscreen === false) {
|
||||
|
@@ -135,6 +135,8 @@
|
||||
"audio/**",
|
||||
"images/**",
|
||||
"fonts/*",
|
||||
"build/assets",
|
||||
"build/icons/png/512x512.png",
|
||||
"node_modules/**",
|
||||
"!node_modules/spellchecker/vendor/hunspell/**/*",
|
||||
"!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme,test,__tests__,tests,powered-test,example,examples,*.d.ts}",
|
||||
|
Reference in New Issue
Block a user