mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-07-15 04:43:36 +00:00
fix: desktop app not launching
This commit is contained in:
+3
-1
@@ -564,7 +564,9 @@ function getBackendEntryPath() {
|
|||||||
if (isDev) {
|
if (isDev) {
|
||||||
return path.join(appRoot, "dist", "backend", "backend", "starter.js");
|
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() {
|
function getBackendDataDir() {
|
||||||
|
|||||||
Reference in New Issue
Block a user