Reputation:
I'm trying to migrate my app from electron-builder
to electron-forge
, because the latter supports Flatpak making. The sample app works without a hitch, but my real repository seems to have some problems.
I can package the app just fine, and the makelog doesn't throw any errors, but when running the app itself, this error appears:
/app/bin/zypak-wrapper: line 24: exec: my-program: not found
As far as I can see, there aren't any conflicting node modules, and the package.json itself doesn't really seem to change anything. I assume the problem is in my main.js
, but I first need to understand what the error entails.
Upvotes: 1
Views: 493
Reputation:
The problem was with zypak
, because it looked for the name
specified in package.json
, not taking into account the possibility of a productName
.
Removing the productName
fixed the problem, though I'm not sure how to replicate that behaviour now.
Upvotes: 1