(feat): add icons to the electron app
(feat): bump version
This commit is contained in:
parent
b5e7b8e2c1
commit
4445852c42
13 changed files with 38 additions and 4 deletions
BIN
apps/electron/build/icons/128x128.png
Normal file
BIN
apps/electron/build/icons/128x128.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
BIN
apps/electron/build/icons/128x128@2x.png
Normal file
BIN
apps/electron/build/icons/128x128@2x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
BIN
apps/electron/build/icons/32x32.png
Normal file
BIN
apps/electron/build/icons/32x32.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.1 KiB |
BIN
apps/electron/build/icons/64x64.png
Normal file
BIN
apps/electron/build/icons/64x64.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.2 KiB |
BIN
apps/electron/build/icons/icon.icns
Normal file
BIN
apps/electron/build/icons/icon.icns
Normal file
Binary file not shown.
BIN
apps/electron/build/icons/icon.ico
Normal file
BIN
apps/electron/build/icons/icon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
BIN
apps/electron/build/icons/icon.png
Normal file
BIN
apps/electron/build/icons/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 38 KiB |
|
|
@ -41,6 +41,7 @@
|
|||
"productName": "Tensamin",
|
||||
"executableName": "tensamin",
|
||||
"artifactName": "Tensamin-${version}-${os}-${arch}.${ext}",
|
||||
"icon": "build/icons/icon.png",
|
||||
"directories": {
|
||||
"output": "release"
|
||||
},
|
||||
|
|
@ -52,10 +53,15 @@
|
|||
{
|
||||
"from": "../web/dist",
|
||||
"to": "web"
|
||||
},
|
||||
{
|
||||
"from": "build/icons/icon.png",
|
||||
"to": "icons/icon.png"
|
||||
}
|
||||
],
|
||||
"linux": {
|
||||
"target": ["AppImage", "deb", "rpm"],
|
||||
"icon": "build/icons",
|
||||
"executableName": "tensamin",
|
||||
"category": "Network",
|
||||
"maintainer": "Methanium",
|
||||
|
|
@ -67,10 +73,12 @@
|
|||
}
|
||||
},
|
||||
"win": {
|
||||
"target": ["nsis", "portable"]
|
||||
"target": ["nsis", "portable"],
|
||||
"icon": "build/icons/icon.ico"
|
||||
},
|
||||
"mac": {
|
||||
"target": ["dmg"]
|
||||
"target": ["dmg"],
|
||||
"icon": "build/icons/icon.icns"
|
||||
},
|
||||
"publish": null
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,6 +34,12 @@ function getRendererIndex() {
|
|||
return join(process.resourcesPath, "web", "index.html");
|
||||
}
|
||||
|
||||
function getWindowIcon() {
|
||||
if (process.platform === "darwin") return undefined;
|
||||
if (app.isPackaged) return join(process.resourcesPath, "icons", "icon.png");
|
||||
return resolve(__dirname, "../../build/icons/icon.png");
|
||||
}
|
||||
|
||||
function getPlatform(): DesktopScreenShareCapabilities["platform"] {
|
||||
if (process.platform === "linux") return "linux";
|
||||
if (process.platform === "darwin") return "macos";
|
||||
|
|
@ -191,6 +197,7 @@ async function createWindow() {
|
|||
minWidth: 900,
|
||||
minHeight: 600,
|
||||
title: "Tensamin",
|
||||
icon: getWindowIcon(),
|
||||
frame: false,
|
||||
autoHideMenuBar: true,
|
||||
webPreferences: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue