mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-12-22 11:42:14 -08:00
icns icon no longer works as macOS platform icon (resolves #68).
This commit is contained in:
parent
8726638a23
commit
1430d0faa2
19
index.js
19
index.js
@ -193,16 +193,19 @@ function createMenu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getPlatformIcon(filename){
|
function getPlatformIcon(filename){
|
||||||
const opSys = process.platform
|
let ext
|
||||||
if (opSys === 'darwin') {
|
switch(process.platform) {
|
||||||
filename = filename + '.icns'
|
case 'win32':
|
||||||
} else if (opSys === 'win32') {
|
ext = 'ico'
|
||||||
filename = filename + '.ico'
|
break
|
||||||
} else {
|
case 'darwin':
|
||||||
filename = filename + '.png'
|
case 'linux':
|
||||||
|
default:
|
||||||
|
ext = 'png'
|
||||||
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
return path.join(__dirname, 'app', 'assets', 'images', filename)
|
return path.join(__dirname, 'app', 'assets', 'images', `${filename}.${ext}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
app.on('ready', createWindow)
|
app.on('ready', createWindow)
|
||||||
|
12
package-lock.json
generated
12
package-lock.json
generated
@ -1118,9 +1118,9 @@
|
|||||||
"integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ="
|
"integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ="
|
||||||
},
|
},
|
||||||
"eslint": {
|
"eslint": {
|
||||||
"version": "7.0.0",
|
"version": "7.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/eslint/-/eslint-7.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/eslint/-/eslint-7.1.0.tgz",
|
||||||
"integrity": "sha512-qY1cwdOxMONHJfGqw52UOpZDeqXy8xmD0u8CT6jIstil72jkhURC704W8CFyTPDPllz4z4lu0Ql1+07PG/XdIg==",
|
"integrity": "sha512-DfS3b8iHMK5z/YLSme8K5cge168I8j8o1uiVmFCgnnjxZQbCGyraF8bMl7Ju4yfBmCuxD7shOF7eqGkcuIHfsA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/code-frame": "^7.0.0",
|
"@babel/code-frame": "^7.0.0",
|
||||||
@ -3059,9 +3059,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tslib": {
|
"tslib": {
|
||||||
"version": "1.11.2",
|
"version": "1.13.0",
|
||||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.11.2.tgz",
|
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz",
|
||||||
"integrity": "sha512-tTSkux6IGPnUGUd1XAZHcpu85MOkIl5zX49pO+jfsie3eP0B6pyhOlLXm3cAC6T7s+euSDDUUV+Acop5WmtkVg==",
|
"integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"tunnel": {
|
"tunnel": {
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
"cross-env": "^7.0.2",
|
"cross-env": "^7.0.2",
|
||||||
"electron": "^9.0.0",
|
"electron": "^9.0.0",
|
||||||
"electron-builder": "^22.6.1",
|
"electron-builder": "^22.6.1",
|
||||||
"eslint": "^7.0.0"
|
"eslint": "^7.1.0"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
Loading…
Reference in New Issue
Block a user