livedesk 0.1.406 → 0.1.408
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/electron/electron-builder.mac-arm64.yml +3 -0
- package/electron/electron-builder.mac-x64.yml +3 -0
- package/electron/electron-builder.win.yml +3 -0
- package/electron/icon.icns +0 -0
- package/electron/icon.ico +0 -0
- package/electron/icon.png +0 -0
- package/electron/icon.svg +11 -0
- package/electron/main.mjs +11 -9
- package/electron/tray.ico +0 -0
- package/electron/tray.png +0 -0
- package/package.json +1 -1
- package/web/dist/apple-touch-icon.png +0 -0
- package/web/dist/assets/{index-Bypm5QFm.css → index-CZw2jLf-.css} +1 -1
- package/web/dist/assets/index-DGODhq1E.js +25 -0
- package/web/dist/favicon.ico +0 -0
- package/web/dist/favicon.svg +11 -0
- package/web/dist/index.html +6 -2
- package/web/dist/assets/index-_CtkoZqT.js +0 -25
|
@@ -16,10 +16,13 @@ asarUnpack:
|
|
|
16
16
|
- bin/**
|
|
17
17
|
- bootstrap/**
|
|
18
18
|
- client/**
|
|
19
|
+
- electron/icon.*
|
|
20
|
+
- electron/tray.*
|
|
19
21
|
- hub/**
|
|
20
22
|
- runtime-core/**
|
|
21
23
|
- web/**
|
|
22
24
|
mac:
|
|
25
|
+
icon: packages/livedesk/electron/icon.icns
|
|
23
26
|
category: public.app-category.utilities
|
|
24
27
|
target:
|
|
25
28
|
- target: dmg
|
|
@@ -16,10 +16,13 @@ asarUnpack:
|
|
|
16
16
|
- bin/**
|
|
17
17
|
- bootstrap/**
|
|
18
18
|
- client/**
|
|
19
|
+
- electron/icon.*
|
|
20
|
+
- electron/tray.*
|
|
19
21
|
- hub/**
|
|
20
22
|
- runtime-core/**
|
|
21
23
|
- web/**
|
|
22
24
|
mac:
|
|
25
|
+
icon: packages/livedesk/electron/icon.icns
|
|
23
26
|
category: public.app-category.utilities
|
|
24
27
|
target:
|
|
25
28
|
- target: dmg
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024" fill="none">
|
|
2
|
+
<rect x="24" y="24" width="976" height="976" rx="220" fill="#111827"/>
|
|
3
|
+
<g transform="translate(192 192) scale(22.8571428571)">
|
|
4
|
+
<rect x="2.5" y="4" width="14" height="9" rx="1.5" stroke="#F8FAFC" stroke-width="1.7" opacity="0.42"/>
|
|
5
|
+
<path d="M7 16v1.5h5" stroke="#F8FAFC" stroke-width="1.7" stroke-linecap="round" opacity="0.42"/>
|
|
6
|
+
<rect x="10.5" y="2.5" width="14" height="9" rx="1.5" stroke="#F8FAFC" stroke-width="1.7" opacity="0.62"/>
|
|
7
|
+
<path d="M15 14.5V16h5" stroke="#F8FAFC" stroke-width="1.7" stroke-linecap="round" opacity="0.62"/>
|
|
8
|
+
<rect x="6.5" y="8.5" width="15" height="10" rx="1.7" fill="#F8FAFC" fill-opacity="0.12" stroke="#F8FAFC" stroke-width="1.9"/>
|
|
9
|
+
<path d="M12 21v1.5H9.5M16 21v1.5h2.5M9.5 22.5h9" stroke="#F8FAFC" stroke-width="1.9" stroke-linecap="round"/>
|
|
10
|
+
</g>
|
|
11
|
+
</svg>
|
package/electron/main.mjs
CHANGED
|
@@ -69,7 +69,7 @@ let productUpdates = null;
|
|
|
69
69
|
let pendingOAuth = null;
|
|
70
70
|
let pendingProtocolUrl = '';
|
|
71
71
|
let runtimeLogoutPromise = null;
|
|
72
|
-
const
|
|
72
|
+
const FALLBACK_ICON_DATA_URL = `data:image/svg+xml;charset=utf-8,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none"><rect x="1" y="1" width="30" height="30" rx="7" fill="#111827"/><g transform="translate(5 5) scale(.785714)"><rect x="2.5" y="4" width="14" height="9" rx="1.5" stroke="#F8FAFC" stroke-width="1.7" opacity=".42"/><path d="M7 16v1.5h5" stroke="#F8FAFC" stroke-width="1.7" stroke-linecap="round" opacity=".42"/><rect x="10.5" y="2.5" width="14" height="9" rx="1.5" stroke="#F8FAFC" stroke-width="1.7" opacity=".62"/><path d="M15 14.5V16h5" stroke="#F8FAFC" stroke-width="1.7" stroke-linecap="round" opacity=".62"/><rect x="6.5" y="8.5" width="15" height="10" rx="1.7" fill="#F8FAFC" fill-opacity=".12" stroke="#F8FAFC" stroke-width="1.9"/><path d="M12 21v1.5H9.5M16 21v1.5h2.5M9.5 22.5h9" stroke="#F8FAFC" stroke-width="1.9" stroke-linecap="round"/></g></svg>')}`;
|
|
73
73
|
|
|
74
74
|
function mask(value) {
|
|
75
75
|
return String(value ?? '')
|
|
@@ -595,14 +595,16 @@ function showWindow() {
|
|
|
595
595
|
mainWindow.focus();
|
|
596
596
|
}
|
|
597
597
|
|
|
598
|
-
function createMainWindow() {
|
|
599
|
-
|
|
598
|
+
function createMainWindow() {
|
|
599
|
+
const iconPath = appResource('electron', 'icon.png');
|
|
600
|
+
mainWindow = new BrowserWindow({
|
|
600
601
|
width: 1440,
|
|
601
602
|
height: 960,
|
|
602
603
|
minWidth: 1080,
|
|
603
|
-
minHeight: 720,
|
|
604
|
-
show: false,
|
|
605
|
-
title: APP_NAME,
|
|
604
|
+
minHeight: 720,
|
|
605
|
+
show: false,
|
|
606
|
+
title: APP_NAME,
|
|
607
|
+
icon: existsSync(iconPath) ? iconPath : nativeImage.createFromDataURL(FALLBACK_ICON_DATA_URL),
|
|
606
608
|
webPreferences: {
|
|
607
609
|
preload: appResource('electron', 'preload.cjs'),
|
|
608
610
|
contextIsolation: true,
|
|
@@ -707,9 +709,9 @@ function registerIpc() {
|
|
|
707
709
|
handle('updates:install', () => productUpdates?.install() || Promise.resolve({ state: 'unavailable' }));
|
|
708
710
|
}
|
|
709
711
|
|
|
710
|
-
function createTray() {
|
|
711
|
-
const iconPath = appResource('electron', 'tray.ico');
|
|
712
|
-
tray = new Tray(existsSync(iconPath) ? iconPath : nativeImage.createFromDataURL(
|
|
712
|
+
function createTray() {
|
|
713
|
+
const iconPath = appResource('electron', process.platform === 'win32' ? 'tray.ico' : 'tray.png');
|
|
714
|
+
tray = new Tray(existsSync(iconPath) ? iconPath : nativeImage.createFromDataURL(FALLBACK_ICON_DATA_URL));
|
|
713
715
|
const menu = Menu.buildFromTemplate([
|
|
714
716
|
{ label: 'Show LiveDesk', click: showWindow },
|
|
715
717
|
{ label: 'Restart runtime', click: restartRuntimeProcess },
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|