mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 02:52:27 +08:00
fix(nx/forge): serve assets from ASAR
This commit is contained in:
parent
e266b50198
commit
ebb78e4ce5
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user