feat: expand secure runtime and workspace UX

This commit is contained in:
lofyer
2026-08-04 00:57:08 +08:00
parent 09e9fbf5e2
commit 2910d315f7
56 changed files with 6164 additions and 882 deletions
+26
View File
@@ -0,0 +1,26 @@
import { describe, expect, it } from 'vitest'
import { resolveTrayIconPath } from './tray-icon'
describe('resolveTrayIconPath', () => {
it('uses the packaged notification-area PNG on Windows', () => {
expect(
resolveTrayIconPath({
platform: 'win32',
isPackaged: true,
appPath: 'C:\\app',
resourcesPath: 'C:\\app\\resources'
})
).toBe('C:\\app\\resources\\tray-icon.png')
})
it('uses the generated taskbar asset during development', () => {
expect(
resolveTrayIconPath({
platform: 'linux',
isPackaged: false,
appPath: '/opt/goodbuddy',
resourcesPath: '/opt/goodbuddy/resources'
})
).toBe('/opt/goodbuddy/build/icon-tray.png')
})
})