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.
@@ -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
@@ -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
  win:
25
+ icon: packages/livedesk/electron/icon.ico
23
26
  target:
24
27
  - target: nsis
25
28
  arch:
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 TRAY_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"><rect width="32" height="32" rx="8" fill="#111827"/><path d="M9 23V9h4l3 5 3-5h4v14h-4v-7l-3 5-3-5v7H9Z" fill="#5eead4"/></svg>')}`;
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
- mainWindow = new BrowserWindow({
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(TRAY_ICON_DATA_URL));
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "livedesk",
3
- "version": "0.1.406",
3
+ "version": "0.1.408",
4
4
  "livedeskClientVersion": "0.1.173",
5
5
  "buildFlavor": "production",
6
6
  "description": "LiveDesk Hub and client launcher",
Binary file