Skip to content

Commit c6c50d7

Browse files
committed
Fix core js for electron
1 parent d3e3294 commit c6c50d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/electron-libs/core.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ function startService() {
6161
stopPort: 31000,
6262
})
6363
.then(port => {
64-
const rootPath = path.join(__dirname, '..', '..', '..', 'backend', 'signed_dir');
64+
const rootPath = path.join(__dirname, '..', '..', '..', 'backend', platformData.isWin ? 'signed_dir' : '');
65+
6566
if (processes.length === 0) {
6667
global.backendPort = port;
6768
const process = spawn(path.join(rootPath, `ame-backend-${projectVersion}-${platformData.extension}`), [`-Dserver.port=${port}`]);

0 commit comments

Comments
 (0)