Commit 8e11022d authored by dev0tion's avatar dev0tion

Fix app icon on packaged app

parent 64cc4bab
......@@ -33,7 +33,7 @@ function createWindow() {
if (serve) {
applicationIcon = nativeImage.createFromPath("./src/assets/images/breeze-logo.png")
} else {
applicationIcon = nativeImage.createFromPath("./assets/images/breeze-logo.png")
applicationIcon = nativeImage.createFromPath(path.join(__dirname + '/assets/images/breeze-logo.png'))
}
// Create the browser window.
......@@ -43,10 +43,11 @@ function createWindow() {
frame: true,
minWidth: 1200,
minHeight: 650,
icon: applicationIcon,
title: "Breeze Wallet"
});
mainWindow.setIcon(applicationIcon);
// and load the index.html of the app.
mainWindow.loadURL(url.format({
pathname: path.join(__dirname, '/index.html'),
......@@ -192,7 +193,7 @@ function createTray() {
if (serve) {
trayIcon = nativeImage.createFromPath('./src/assets/images/breeze-logo.png');
} else {
trayIcon = nativeImage.createFromPath('./assets/images/breeze-logo.png');
trayIcon = nativeImage.createFromPath(path.join(__dirname + '/assets/images/breeze-logo.png'));
}
let systemTray = new Tray(trayIcon);
......
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