How can I bundle a precompiled binary with electron

后端 未结 4 1427
执念已碎
执念已碎 2020-12-07 23:27

I am trying to include a precompiled binary with an electron app. I began with electron quick start app and modified my renderer.js file to include this code t

4条回答
  •  情话喂你
    2020-12-08 00:24

    I know I'm a bit late but just wanted to mention ffbinaries npm package I created a while ago exactly for this purpose.

    It'll allow you to download ffmpeg/ffplay/ffserver/ffprobe binaries to specified location either during application boot (so you don't need to bundle it with your application) or in a CI setup. It can autodetect platform, you can also specify it manually.

提交回复
热议问题