Compare commits
1 Commits
1476ff7bb4
...
ca51ba7063
| Author | SHA1 | Date | |
|---|---|---|---|
| ca51ba7063 |
BIN
assets/icon.png
Normal file
BIN
assets/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 268 KiB |
BIN
assets/tray.png
Normal file
BIN
assets/tray.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 867 B |
BIN
assets/tray@2x.png
Normal file
BIN
assets/tray@2x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
BIN
build/icon.png
Normal file
BIN
build/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.0 MiB |
5
main.js
5
main.js
@@ -60,6 +60,7 @@ function createWindow() {
|
||||
minWidth: 1024,
|
||||
minHeight: 700,
|
||||
title: 'Fabric Desktop',
|
||||
icon: path.join(__dirname, 'assets/icon.png'),
|
||||
autoHideMenuBar: false,
|
||||
webPreferences: {
|
||||
contextIsolation: true,
|
||||
@@ -99,9 +100,7 @@ function createWindow() {
|
||||
function createTrayIcon() {
|
||||
if (tray) return tray
|
||||
|
||||
const iconDataUrl =
|
||||
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAfElEQVR4AWNw4PjPwMDA8J+BgYHhP4MDA8N/BgYGhv8MDAwM/2dgYGB4R2JgYGB4w8DAwPCfgYGB4R8DAwPDf4aGhob/BgwMDAz/Z2BgYHhHYmBgYHjDwMDA8J+BgYHhHwMDA8N/hoYGhv8GDAwMDP9nYGBgeEdiYGAAAB7RImfVq6X8AAAAAElFTkSuQmCC'
|
||||
const icon = nativeImage.createFromDataURL(iconDataUrl)
|
||||
const icon = nativeImage.createFromPath(path.join(__dirname, 'assets/tray.png'))
|
||||
|
||||
tray = new Tray(icon)
|
||||
tray.setToolTip('Fabric Desktop')
|
||||
|
||||
@@ -33,9 +33,11 @@
|
||||
"main.js",
|
||||
"preload.js",
|
||||
"offline.html",
|
||||
"package.json"
|
||||
"package.json",
|
||||
"assets/**"
|
||||
],
|
||||
"asar": true,
|
||||
"icon": "build/icon.png",
|
||||
"linux": {
|
||||
"target": [
|
||||
"AppImage",
|
||||
|
||||
Reference in New Issue
Block a user