'How to build with electron-forge with no internet (airgap)

Environment: electron 17.2.0, electron-forge 6.0.0-beta.63 on Ubuntu 20.04

Folks, I am developing a simple electron app on an Ubuntu VM. I now need to move the VM to an air-gapped environment (no Internet). I have all my Node packages downloaded on the VM and the electron pre-built binaries are available in ~/.cache/electron. How do I get the 'electron-forge make' command to use the cached pre-built binaries rather than trying to call out to GitHub?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source