Skip to content

Commit

Permalink
Fix core js for electron
Browse files Browse the repository at this point in the history
  • Loading branch information
michelu89 committed May 8, 2024
1 parent d3e3294 commit c6c50d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/electron-libs/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ function startService() {
stopPort: 31000,
})
.then(port => {
const rootPath = path.join(__dirname, '..', '..', '..', 'backend', 'signed_dir');
const rootPath = path.join(__dirname, '..', '..', '..', 'backend', platformData.isWin ? 'signed_dir' : '');

if (processes.length === 0) {
global.backendPort = port;
const process = spawn(path.join(rootPath, `ame-backend-${projectVersion}-${platformData.extension}`), [`-Dserver.port=${port}`]);
Expand Down

0 comments on commit c6c50d7

Please sign in to comment.