Skip to content

Commit 279cd3f

Browse files
committed
Fix dependency permission dialog for release binary
- Implement system dependency checking and permission requests - Add permission dialog when uvicorn/npx commands are not found - Update auto-fix mechanism to handle missing system dependencies - Fix Vite build configuration to externalize Node.js modules - Update renderer config to prevent bundling fs modules This resolves the 'command not found' errors in packaged Electron apps by prompting users to install missing system dependencies like Python packages (uvicorn) and Node.js tools (npx).
1 parent 5d3ce5d commit 279cd3f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vite.renderer.config.mts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,9 @@ export default defineConfig({
1111
"@": path.resolve(__dirname, "./src"),
1212
},
1313
},
14+
build: {
15+
rollupOptions: {
16+
external: ["node:fs", "node:path"],
17+
},
18+
},
1419
});

0 commit comments

Comments
 (0)