Commit c1a9bd3b authored by dev0tion's avatar dev0tion

Tray icon on serve and packaging

parent fdee7e4d
...@@ -141,10 +141,18 @@ function createTray() { ...@@ -141,10 +141,18 @@ function createTray() {
var iconPath var iconPath
if (os.platform() === 'win32') { if (os.platform() === 'win32') {
if (serve) {
iconPath = '.\src\assets\images\breeze-logo-tray.ico'; iconPath = '.\src\assets\images\breeze-logo-tray.ico';
} else {
iconPath = path.join(__dirname + '\\assets\\images\\breeze-logo-tray.png');
}
} else { } else {
// iconPath = path.join(__dirname + '//assets//images//breeze-logo-tray.png'); if (serve) {
iconPath = './src/assets/images/breeze-logo-tray.png'; iconPath = './src/assets/images/breeze-logo-tray.png';
} else {
iconPath = path.join(__dirname + '//assets//images//breeze-logo-tray.png');
}
} }
appIcon = new Tray(iconPath); 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