mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-07-09 00:30:49 +00:00
fix: desktop app not launching
This commit is contained in:
+3
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user