fix(CI): correct Linux icon

This commit is contained in:
草鞋没号 2023-04-17 10:24:20 +08:00
parent 1017a297e8
commit c74834b35e
4 changed files with 6 additions and 1 deletions

View File

@ -2,9 +2,9 @@
* @see https://www.electron.build/configuration/configuration * @see https://www.electron.build/configuration/configuration
*/ */
{ {
"$schema": "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json",
"appId": "YourAppID", "appId": "YourAppID",
"asar": true, "asar": true,
"icon": "public/favicon.ico",
"directories": { "directories": {
"output": "release/${version}" "output": "release/${version}"
}, },
@ -12,13 +12,18 @@
"dist-electron", "dist-electron",
"dist" "dist"
], ],
"linux": {
"icon": "public/icon.png",
},
"mac": { "mac": {
"artifactName": "${productName}_${version}.${ext}", "artifactName": "${productName}_${version}.${ext}",
"icon": "public/icon.icns",
"target": [ "target": [
"dmg" "dmg"
] ]
}, },
"win": { "win": {
"icon": "public/icon.ico",
"target": [ "target": [
{ {
"target": "nsis", "target": "nsis",

BIN
public/icon.icns Normal file

Binary file not shown.

BIN
public/icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

BIN
public/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB