Skip to content

Commit 6737f13

Browse files
committed
added full path for process exec for darwin build
1 parent f6816a0 commit 6737f13

File tree

3 files changed

+94
-31
lines changed

3 files changed

+94
-31
lines changed

package-lock.json

Lines changed: 89 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@
164164
"electron-reload": "^1.5.0",
165165
"electron-updater": "^4.3.1",
166166
"extract-zip": "^1.7.0",
167+
"fix-path": "^3.0.0",
167168
"fs-extra": "^8.1.0",
168169
"global-tunnel": "^1.2.0",
169170
"ini": "^1.3.5",

src/app/services-system/execute-service.service.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ export class ExecuteServiceService extends NativeService {
2626
command = command.substring(5, command.length);
2727
}
2828

29+
if (this.process.platform === 'darwin') {
30+
command = '/usr/local/bin/' + command;
31+
}
32+
2933
exec(command, {name: 'Leapp', timeout: 60000 }, (err, stdout, stderr) => {
3034
this.log.info('execute from Leapp: ', {error: err, standardout: stdout, standarderror: stderr});
3135
if (err) {

0 commit comments

Comments
 (0)