This repo is a minimal demo of integrating webtorrent and electronforge. Webtorrent is integrated in a worker thread on the nodejs side, rather than in the browser side.
npm run start
to get it going in a dev environmentnpm run make
to build the installer
Currently, the built (npm run make
) version fails to download a torrent. This is because webpack is not bundling in dependencies into the worker chunk, and that JS file can't find the webtorrent
package.
- Logs are written to
%AppData%\Roaming\webtorrent-test\logs\main.log
. This is helpful to debug errors and logs in themake
exe. - Downloads are saved in your system's Downloads folder (eg:
C:\Users\Flam\Downloads\
) - This tries to download a folder for a video called
Cosmos Laundromat
in your downloads folder. It works withnpm run start
but not withnpm run main
.
My fix / workaround can be seen here #2