Merge pull request #2708 from vector-im/dbkr/png_icon_on_linux

Use a PNG for the icon on non-Windows
This commit is contained in:
Richard van der Hoff 2016-12-07 11:23:10 +00:00 committed by GitHub
commit 65a31cc8a9

View file

@ -156,8 +156,12 @@ electron.app.on('ready', () => {
console.log("No update_base_url is defined: auto update is disabled");
}
const icon_path = `${__dirname}/../img/riot.` + (
process.platform == 'win32' ? 'ico' : 'png'
);
mainWindow = new electron.BrowserWindow({
icon: `${__dirname}/../img/riot.ico`,
icon: icon_path,
width: 1024, height: 768,
show: false,
});