Add icon to the window manually on creation (#1735)

This supplements the work we already do to tell the OS about our icon.
pull/749/head
Scott Nonnenberg 8 years ago committed by GitHub
parent f7140af9cb
commit 1fdaa00660
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -104,7 +104,8 @@ function createWindow () {
nodeIntegration: false, nodeIntegration: false,
//sandbox: true, //sandbox: true,
preload: path.join(__dirname, 'preload.js') preload: path.join(__dirname, 'preload.js')
} },
icon: __dirname + '/build/icons/png/512x512.png',
}, windowConfig); }, windowConfig);
if (windowOptions.fullscreen === false) { if (windowOptions.fullscreen === false) {

@ -135,6 +135,8 @@
"audio/**", "audio/**",
"images/**", "images/**",
"fonts/*", "fonts/*",
"build/assets",
"build/icons/png/512x512.png",
"node_modules/**", "node_modules/**",
"!node_modules/spellchecker/vendor/hunspell/**/*", "!node_modules/spellchecker/vendor/hunspell/**/*",
"!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme,test,__tests__,tests,powered-test,example,examples,*.d.ts}", "!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme,test,__tests__,tests,powered-test,example,examples,*.d.ts}",

Loading…
Cancel
Save