adjusted path to mode inside asar

This commit is contained in:
DJ2LS 2023-10-24 23:44:43 +02:00
parent 287826831b
commit 7a8d1e9dd1

View file

@ -105,12 +105,12 @@ app.whenReady().then(() => {
switch (platform().toLowerCase()) { switch (platform().toLowerCase()) {
case "darwin": case "darwin":
case "linux": case "linux":
daemonPath = join(process.resourcesPath, "modem", "freedata-daemon"); daemonPath = join(__dirname, "modem", "freedata-daemon");
break; break;
case "win32": case "win32":
case "win64": case "win64":
daemonPath = join(process.resourcesPath, "modem", "freedata-daemon.exe"); daemonPath = join(__dirname, "modem", "freedata-daemon.exe");
break; break;
default: default:
console.log("Unhandled OS Platform: ", platform()); console.log("Unhandled OS Platform: ", platform());