Windows用パッケージにアイコンを設定する
This commit is contained in:
BIN
electron-mattermost.ico
Normal file
BIN
electron-mattermost.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 301 KiB |
@@ -52,7 +52,7 @@ app.on('before-quit', function() {
|
||||
app.on('ready', function() {
|
||||
// set up tray icon to show balloon
|
||||
if (process.platform === 'win32') {
|
||||
trayIcon = new Tray(null);
|
||||
trayIcon = new Tray(__dirname + '/tray.png');
|
||||
trayIcon.setToolTip(app.getName());
|
||||
ipc.on('notified', function(event, arg) {
|
||||
trayIcon.displayBalloon({
|
||||
|
BIN
src/tray.png
Normal file
BIN
src/tray.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
Reference in New Issue
Block a user