ci: bootstrap Linux release toolchains

This commit is contained in:
Yun Chan 2026-08-29 19:19:19 +09:00
parent 30d51278c9
commit 6a9608c447
5 changed files with 192 additions and 11 deletions

View file

@ -76,6 +76,30 @@ vi.mock('electron', () => ({
decryptString: vi.fn((b: Buffer) => b.toString('utf-8')),
},
Notification: vi.fn(),
globalShortcut: {
register: vi.fn(() => true),
unregister: vi.fn(),
unregisterAll: vi.fn(),
isRegistered: vi.fn(() => false),
},
}))
// Unit tests must not load the native global keyboard hook. Linux shell runners
// intentionally do not provide an X11 session or libXrandr, and product-level
// hook behaviour is covered by runtime/E2E validation instead.
vi.mock('uiohook-napi', () => ({
uIOhook: {
on: vi.fn(),
removeListener: vi.fn(),
start: vi.fn(),
stop: vi.fn(),
},
UiohookKey: new Proxy<Record<string, number>>({}, {
get: (_target, property) => Array.from(String(property)).reduce(
(value, character) => ((value * 31) + character.charCodeAt(0)) & 0x7fffffff,
17,
),
}),
}))
// WindowManager 모킹 — VoiceModeService가 import하므로 필요