We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ac0b0d commit 77f2305Copy full SHA for 77f2305
src/main/services/agent.ts
@@ -7,6 +7,7 @@ import {
7
type IpcMainInvokeEvent,
8
ipcMain,
9
} from "electron";
10
+import isDev from "electron-is-dev";
11
12
interface AgentStartParams {
13
taskId: string;
@@ -31,6 +32,14 @@ export interface TaskController {
31
32
currentRunId?: string;
33
}
34
35
+function getClaudeCliPath(): string {
36
+ const appPath = app.getAppPath();
37
+
38
+ return app.isPackaged
39
+ ? join(`${appPath}.unpacked`, ".vite/build/cli.js")
40
+ : join(appPath, ".vite/build/cli.js")
41
+}
42
43
function getClaudeCliPath(): string {
44
const appPath = app.getAppPath();
45
const isProduction = !appPath.includes("node_modules");
0 commit comments