mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-27 01:16:23 +02:00
fix electron-squirrel-startup
This commit is contained in:
parent
680f1eef7b
commit
269787a013
3 changed files with 12 additions and 2 deletions
|
|
@ -24,6 +24,7 @@
|
|||
"@electron-forge/maker-zip": "^7.10.2",
|
||||
"@electron-forge/publisher-github": "^7.11.1",
|
||||
"@electron-forge/publisher-s3": "^7.10.2",
|
||||
"@types/electron-squirrel-startup": "^1.0.2",
|
||||
"@types/node": "^25.0.3",
|
||||
"electron": "^39.2.7",
|
||||
"esbuild": "^0.24.2"
|
||||
|
|
|
|||
|
|
@ -12,12 +12,13 @@ import { init as initGraphBuilder } from "@x/core/dist/knowledge/build_graph.js"
|
|||
import { init as initPreBuiltRunner } from "@x/core/dist/pre_built/runner.js";
|
||||
import { init as initAgentRunner } from "@x/core/dist/agent-schedule/runner.js";
|
||||
import { initConfigs } from "@x/core/dist/config/initConfigs.js";
|
||||
import started from "electron-squirrel-startup";
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
|
||||
// run this as early in the main process as possible
|
||||
if (require('electron-squirrel-startup')) app.quit();
|
||||
if (started) app.quit();
|
||||
|
||||
// Path resolution differs between development and production:
|
||||
const preloadPath = app.isPackaged
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue