Commit c1a9bd3b authored by dev0tion's avatar dev0tion

Tray icon on serve and packaging

parent fdee7e4d
......@@ -141,10 +141,18 @@ function createTray() {
var iconPath
if (os.platform() === 'win32') {
iconPath = '.\src\assets\images\breeze-logo-tray.ico';
if (serve) {
iconPath = '.\src\assets\images\breeze-logo-tray.ico';
} else {
iconPath = path.join(__dirname + '\\assets\\images\\breeze-logo-tray.png');
}
} else {
// iconPath = path.join(__dirname + '//assets//images//breeze-logo-tray.png');
iconPath = './src/assets/images/breeze-logo-tray.png';
if (serve) {
iconPath = './src/assets/images/breeze-logo-tray.png';
} else {
iconPath = path.join(__dirname + '//assets//images//breeze-logo-tray.png');
}
}
appIcon = new Tray(iconPath);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment