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:
Scott Nonnenberg 2017-11-08 17:33:20 -08:00 committed by GitHub
parent f7140af9cb
commit 1fdaa00660
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -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) {

View file

@ -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}",