()
| 348 | } |
| 349 | |
| 350 | async function createMainWindow() { |
| 351 | await ensureLauncherReady() |
| 352 | await loadProductMeta() |
| 353 | startLauncherHealthMonitor() |
| 354 | |
| 355 | mainWindow = new BrowserWindow({ |
| 356 | width: 1480, |
| 357 | height: 980, |
| 358 | minWidth: 1200, |
| 359 | minHeight: 760, |
| 360 | backgroundColor: '#F6F1E8', |
| 361 | show: false, |
| 362 | title: 'claw-code', |
| 363 | icon: iconPath, |
| 364 | autoHideMenuBar: true, |
| 365 | titleBarStyle: 'hidden', |
| 366 | titleBarOverlay: { |
| 367 | color: '#F7F4EC', |
| 368 | symbolColor: '#5C5247', |
| 369 | height: 36, |
| 370 | }, |
| 371 | webPreferences: { |
| 372 | preload: preloadPath, |
| 373 | contextIsolation: true, |
| 374 | nodeIntegration: false, |
| 375 | sandbox: false, |
| 376 | }, |
| 377 | }) |
| 378 | |
| 379 | mainWindow.once('ready-to-show', () => { |
| 380 | mainWindow?.show() |
| 381 | }) |
| 382 | |
| 383 | await mainWindow.loadURL(uiUrl) |
| 384 | buildApplicationMenu() |
| 385 | } |
| 386 | |
| 387 | function registerIpc() { |
| 388 | ipcMain.handle('claw:desktop:get-bootstrap', async () => { |
no test coverage detected