Electron: __static in boot files not valid in production and how to store unpacked exe files
Andrea19888 last edited by
Hi all, I’m having issues with Electron and statics variable. I need to embed ffmpeg executables in my Quasar+Electron app.
I placed the files inside the statics folder, but I have 2 problems:
- how to make them not part of the asar archive (so that I can get a path and run the exe files), i.e. part of app.asar.unpacked
- how to reference the required path in both dev and production. I can use statics in dev mode but in production I’m getting the error “ReferenceError: __statics is not defined”. Consider that I’m checking the exe existence in a Quasar boot file.
I saw this just now, maybe it will help you? https://alexandercleasby.dev/blog/use-ffmpeg-electron
My app does not need ffmpeg file at all but still my app fails to run when executing it in a folder without ffmpeg.dll file. Not sure if it’s a must in an electron app or how can I tell electron that this file is not needed.
solution, at least to my problem: https://forum.quasar-framework.org/topic/5783/electron-questions/5