fix(nx/forge): serve assets from ASAR

This commit is contained in:
Elian Doran 2025-04-26 03:23:53 +03:00
parent e266b50198
commit ebb78e4ce5
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@
},
"electron-forge:package": {
"dependsOn": [ "build" ],
"command": "pnpm exec cross-env DEBUG=electron-rebuild electron-forge package apps/desktop/dist"
"command": "pnpm exec electron-forge package apps/desktop/dist"
}
}
}

View File

@ -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]);
}