fix: resolve macos bun interop

Use Bun-safe Electron and child_process import patterns for macOS GitHub Actions tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
David Kaya
2026-03-26 00:30:41 +01:00
co-authored by Copilot
parent 40ef1c07b5
commit d9f3f5302a
13 changed files with 104 additions and 58 deletions
+5 -2
View File
@@ -1,9 +1,12 @@
import { app, BrowserWindow, Menu, shell } from 'electron';
import electron from 'electron';
import type { BrowserWindow as BrowserWindowType } from 'electron';
import { join } from 'node:path';
import { resolveWindowIconPath } from '@main/windows/appIcon';
export function createMainWindow(): BrowserWindow {
const { app, BrowserWindow, Menu, shell } = electron;
export function createMainWindow(): BrowserWindowType {
Menu.setApplicationMenu(null);
const window = new BrowserWindow({