Relative Content

Tag Archive for electronelectron-forge

Electron Forge does not pass specific `arch` for universal Mac builds

We are using ffmpeg-static in our Electron app, and creating a universal mac build via electron-forge and under the hood electron/universal. But only the arm64 ffmpeg binary exists in the final app. I have confirmed that the ffmpeg-static module can be rebuilt manually with an arch param as arm64 or x86 (npm rebuild --arch=x64 -f ffmpeg-static, then confirmed with file node_modules/ffmpeg-static/ffmpeg) and the correct binary is created/downloaded. But when running the universal build, only os.arch() seems to be respected, which in this case is which is an M1 machine.

Electron Forge does not pass specific `arch` for universal Mac builds

We are using ffmpeg-static in our Electron app, and creating a universal mac build via electron-forge and under the hood electron/universal. But only the arm64 ffmpeg binary exists in the final app. I have confirmed that the ffmpeg-static module can be rebuilt manually with an arch param as arm64 or x86 (npm rebuild --arch=x64 -f ffmpeg-static, then confirmed with file node_modules/ffmpeg-static/ffmpeg) and the correct binary is created/downloaded. But when running the universal build, only os.arch() seems to be respected, which in this case is which is an M1 machine.