mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-11 22:29:38 +00:00
Fix appimage icon
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
"compression": "maximum",
|
"compression": "maximum",
|
||||||
"target": [
|
"target": [
|
||||||
"AppImage"
|
"AppImage"
|
||||||
]
|
],
|
||||||
|
"category": "utility"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -95,7 +95,7 @@ function createBridgeWindow() {
|
|||||||
* Initialize a BrowserWindow object with initial parameters
|
* Initialize a BrowserWindow object with initial parameters
|
||||||
*/
|
*/
|
||||||
function createBrowserWindow(windowState: windowStateKeeper.State) {
|
function createBrowserWindow(windowState: windowStateKeeper.State) {
|
||||||
return new BrowserWindow({
|
let options: Electron.BrowserWindowConstructorOptions = {
|
||||||
x: windowState.x,
|
x: windowState.x,
|
||||||
y: windowState.y,
|
y: windowState.y,
|
||||||
width: windowState.width,
|
width: windowState.width,
|
||||||
@@ -109,7 +109,13 @@ function createBrowserWindow(windowState: windowStateKeeper.State) {
|
|||||||
},
|
},
|
||||||
simpleFullscreen: true,
|
simpleFullscreen: true,
|
||||||
fullscreenable: false
|
fullscreenable: false
|
||||||
})
|
}
|
||||||
|
|
||||||
|
if (process.platform == 'linux' && !isDevBuild) {
|
||||||
|
options = Object.assign(options, { icon: path.join(__dirname, '..', 'assets', 'images', 'system', 'icons', 'png', '48x48.png' ) })
|
||||||
|
}
|
||||||
|
|
||||||
|
return new BrowserWindow(options)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user