fix: correct dist path for packaged electron app
This commit is contained in:
@@ -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');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user