Skip to content

Commit

Permalink
fix deamon path
Browse files Browse the repository at this point in the history
  • Loading branch information
iwate committed Sep 9, 2020
1 parent e58da3a commit c6a3542
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Aiplugs.PoshApp.Electron/src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,7 @@ if (isDevelopment) {
let connection;
async function startPowerShellDeamon () {
const binary = process.platform == 'win32' ? 'Aiplugs.PoshApp.Deamon.exe' : 'Aiplugs.PoshApp.Deamon'
const prefix = process.platform == 'darwin' ? '../bin' : 'resources/bin'
const deamon = isDevelopment ? `bin/${binary}` : path.join(__dirname, prefix, binary)
const deamon = isDevelopment ? `bin/${binary}` : path.join(__dirname, '../bin', binary)
const childProcess = cp.spawn(deamon);

// Use stdin and stdout for communication:
Expand Down

0 comments on commit c6a3542

Please sign in to comment.