fix: desktop app not launching

This commit is contained in:
LukeGus
2026-05-06 22:02:11 -05:00
parent 0d8c82d7f8
commit ada8a268bb
+3 -1
View File
@@ -564,7 +564,9 @@ function getBackendEntryPath() {
if (isDev) {
return path.join(appRoot, "dist", "backend", "backend", "starter.js");
}
return path.join(appRoot, "dist", "backend", "backend", "starter.js");
// Backend is asarUnpack'd — fork() cannot run files inside .asar archives
const unpackedRoot = appRoot.replace("app.asar", "app.asar.unpacked");
return path.join(unpackedRoot, "dist", "backend", "backend", "starter.js");
}
function getBackendDataDir() {