Open ninjadev64 opened 1 year ago
Node v18.17.1 node-jpeg-turbo v2.1.0 Electron Forge v6.4.1 (@elgato-stream-deck/node v5.7.3)
I think this is hitting https://github.com/electron/rebuild/issues/1055
As I changed the prebuilds to be part of the npm package rather than being installed via prebuild-install
in v2.0.0, maybe this hack to get electron-builder to rebuild the library is unnecessary. It does mean that cross building for any platform that prebuilds arent provided for will not work, but the chances of being able to compile the binary in that scenario is highly unlikely.
I think this is hitting electron/rebuild#1055
As I changed the prebuilds to be part of the npm package rather than being installed via
prebuild-install
in v2.0.0, maybe this hack to get electron-builder to rebuild the library is unnecessary. It does mean that cross building for any platform that prebuilds arent provided for will not work, but the chances of being able to compile the binary in that scenario is highly unlikely.
Oh, alright, thanks - what should I do to get my builds working again?
Could you try deleting the node_modules/@julusian/jpeg-turbo/binding.gyp
file in your project folder?
That will fix it short term, and will confirm that my planned solution will work for you
Could you try deleting the
node_modules/@julusian/jpeg-turbo/binding.gyp
file in your project folder? That will fix it short term, and will confirm that my planned solution will work for you
Seems to have fixed it, thanks!
Do let me know when the long-term solution is available as this is a minor inconvenience, having to be added as a step in CI builds and explained to others trying to build my project ;)
I can see it mentions electron-userland/electron-builder#3938 in a file attempting to fix this error, but the workaround seems to no longer work...