mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-10 09:15:16 +00:00
Move default Electron icons outside asar
Electron doesn't seem to want to load icons from within `asar`s, so this changes the default icons (used for window and tray) so that they are just regular files on disk and updates the reference to match. Part of https://github.com/vector-im/riot-web/issues/9897
This commit is contained in:
@@ -295,7 +295,10 @@ app.on('ready', () => {
|
|||||||
console.log('No update_base_url is defined: auto update is disabled');
|
console.log('No update_base_url is defined: auto update is disabled');
|
||||||
}
|
}
|
||||||
|
|
||||||
const iconPath = `${__dirname}/../img/riot.${process.platform === 'win32' ? 'ico' : 'png'}`;
|
// It's important to call `path.join` so we don't end up with the packaged
|
||||||
|
// asar in the final path.
|
||||||
|
const iconFile = `riot.${process.platform === 'win32' ? 'ico' : 'png'}`;
|
||||||
|
const iconPath = path.join(__dirname, "..", "..", "img", iconFile);
|
||||||
|
|
||||||
// Load the previous window state with fallback to defaults
|
// Load the previous window state with fallback to defaults
|
||||||
const mainWindowState = windowStateKeeper({
|
const mainWindowState = windowStateKeeper({
|
||||||
|
|||||||
+2
-2
@@ -156,10 +156,10 @@
|
|||||||
"electronVersion": "4.2.4",
|
"electronVersion": "4.2.4",
|
||||||
"files": [
|
"files": [
|
||||||
"node_modules/**",
|
"node_modules/**",
|
||||||
"src/**",
|
"src/**"
|
||||||
"img/**"
|
|
||||||
],
|
],
|
||||||
"extraResources": [
|
"extraResources": [
|
||||||
|
{ "from": "electron_app/img", "to": "img" },
|
||||||
"webapp/**/*",
|
"webapp/**/*",
|
||||||
"origin_migrator/**/*"
|
"origin_migrator/**/*"
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user