fix: correct dist path for packaged electron app

This commit is contained in:
2026-03-18 15:33:08 +08:00
parent 53d4f2aa94
commit 14fbd07462

View File

@@ -38,7 +38,7 @@ docsPath = args.docs || path.join(process.cwd(), 'src', 'docs');
function getDistPath() { function getDistPath() {
if (app.isPackaged) { if (app.isPackaged) {
return path.join(process.resourcesPath, 'app', 'dist'); return path.join(__dirname, '..', 'dist');
} }
return path.join(__dirname, '..', 'dist'); return path.join(__dirname, '..', 'dist');
} }