Skip to content

Commit 5ac2767

Browse files
committed
refactor(icon): change app icon
fixes #5
1 parent 32aef48 commit 5ac2767

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

build/icon.svg

Lines changed: 3 additions & 0 deletions
Loading

build/icons/512x512.png

-15.6 KB
Binary file not shown.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"prebuild": "npm run compile",
1212
"build": "electron-builder build src/dist/",
1313
"postcompile": "npm run fetchIcon",
14-
"fetchIcon": "mkdir -p ./src/dist/img && cp build/icons/512x512.png src/dist/img/icon.png"
14+
"fetchIcon": "mkdir -p ./src/dist/img && cp build/icon.svg src/dist/img/icon.svg"
1515
},
1616
"dependencies": {
1717
"custom-electron-titlebar": "^3.2.0"
@@ -53,9 +53,10 @@
5353
"files": [
5454
"src/**/*",
5555
"!src/app",
56-
"build/icons/512x512.png"
56+
"build/**/*"
5757
],
5858
"linux": {
59+
"icon": "icon.svg",
5960
"target": "AppImage"
6061
}
6162
},

src/app/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const { Titlebar, Color } = window.require('custom-electron-titlebar')
1212

1313
new Titlebar({
1414
menu: false,
15-
icon: "./img/icon.png",
15+
icon: "./img/icon.svg",
1616
backgroundColor: Color.fromHex('#222')
1717
})
1818

src/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"width": 800,
33
"height": 480,
4-
"icon": "./src/dist/img/icon.png",
4+
"icon": "./src/dist/img/icon.svg",
55
"show": false,
66
"frame": false,
77
"darkTheme": true,

0 commit comments

Comments
 (0)