Skip to content

Commit

Permalink
refactor(icon): change app icon
Browse files Browse the repository at this point in the history
fixes #5
  • Loading branch information
debloper committed Jan 1, 2020
1 parent 32aef48 commit 8ccd08f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions build/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed build/icons/512x512.png
Binary file not shown.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"prebuild": "npm run compile",
"build": "electron-builder build src/dist/",
"postcompile": "npm run fetchIcon",
"fetchIcon": "mkdir -p ./src/dist/img && cp build/icons/512x512.png src/dist/img/icon.png"
"fetchIcon": "mkdir -p ./src/dist/img && cp build/icon.svg src/dist/img/icon.svg"
},
"dependencies": {
"custom-electron-titlebar": "^3.2.0"
Expand Down Expand Up @@ -53,9 +53,11 @@
"files": [
"src/**/*",
"!src/app",
"build/icons/512x512.png"
"build/**/*"
],
"linux": {
"icon": "icon.svg",
"afterInstall": "gtk-update-icon-cache /usr/share/icons/hicolor",
"target": "AppImage"
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const { Titlebar, Color } = window.require('custom-electron-titlebar')

new Titlebar({
menu: false,
icon: "./img/icon.png",
icon: "./img/icon.svg",
backgroundColor: Color.fromHex('#222')
})

Expand Down
2 changes: 1 addition & 1 deletion src/config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"width": 800,
"height": 480,
"icon": "./src/dist/img/icon.png",
"icon": "./src/dist/img/icon.svg",
"show": false,
"frame": false,
"darkTheme": true,
Expand Down

0 comments on commit 8ccd08f

Please sign in to comment.