Skip to content

Commit

Permalink
fix(linux): provide desktop app icon
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Apr 16, 2019
1 parent 020e639 commit 2f3d8b4
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 2 deletions.
5 changes: 5 additions & 0 deletions electron/main.js
Expand Up @@ -7,6 +7,7 @@
* `/dist/main.prod.js` using webpack. This gives us some performance wins.
*/
import { app, BrowserWindow, session } from 'electron'
import isDev from 'electron-is-dev'
import installExtension, {
REACT_DEVELOPER_TOOLS,
REDUX_DEVTOOLS,
Expand All @@ -17,6 +18,7 @@ import os from 'os'
import fs from 'fs'
import bip21 from 'bip21'
import { mainLog } from '@zap/utils/log'
import { appRootPath } from '@zap/lnd/util'
import themes from '@zap/renderer/themes'
import { getDbName } from '@zap/utils/db'
import ZapMenuBuilder from './menuBuilder'
Expand Down Expand Up @@ -249,6 +251,9 @@ app.on('ready', async () => {
minWidth: 900,
minHeight: 425,
backgroundColor: get(theme, 'colors.primaryColor', '#242633'),
icon: isDev
? path.resolve('resources', 'icon.png')
: path.resolve(appRootPath(), 'resources', 'icon.png'),
webPreferences: {
nodeIntegration: false,
preload: process.env.HOT
Expand Down
15 changes: 13 additions & 2 deletions package.json
Expand Up @@ -154,7 +154,8 @@
},
"linux": {
"category": "Finance",
"icon": "resources/icon.png",
"packageCategory": "wallet",
"icon": "resources/linux",
"target": [
{
"target": "deb",
Expand All @@ -170,7 +171,17 @@
"ia32"
]
}
]
],
"desktop": {
"Comment": "Zap - Lightning wallet",
"Icon": "zap",
"Name": "Zap",
"Path": "/opt/zap",
"StartupNotify": "true",
"Terminal": "false",
"Type": "Application",
"Categories": "P2P;Finance;Security"
}
}
},
"repository": {
Expand Down
Binary file added resources/linux/128x128.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/linux/16x16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/linux/24x24.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/linux/256x256.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/linux/32x32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/linux/48x48.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/linux/512x512.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/linux/64x64.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2f3d8b4

Please sign in to comment.