mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
fix(nx/forge): serve assets from ASAR
This commit is contained in:
@@ -294,7 +294,7 @@ export function getResourceDir() {
|
||||
return process.env.TRILIUM_RESOURCE_DIR;
|
||||
}
|
||||
|
||||
if (isElectron && !isDev) return process.resourcesPath;
|
||||
if (isElectron && !isDev) return __dirname;
|
||||
if (!isDev) {
|
||||
return path.dirname(process.argv[1]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user