Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

fix(linux): provide desktop app icon #2050

Merged
merged 1 commit into from
Apr 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions electron/main.js
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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.