child_process.exec(pdftk) works perfectly in DEV mode... but doesn't work anymore after BUILD ??? (mac OS) #15277
Unanswered
rrigaud
asked this question in
CLI - Electron mode
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I've got a problem using an external library through child_process.exec (with pdftk).
My code :
const { exec } = require('child_process'); ... exec('pdftk pdfsource.pdf burst output ...)When I use it in DEV mode, it works perfectly !
But when I build my package to MyAPP.app and launch my app, I can intercept an error :
/bin/sh: pdftk: command not foundWhy my Mac doesn't find the pdftk library when launched through my packaged App ?
Could somebody please help me ?
Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions