Hi,
Is it possible to use electron-builder in an offline environment with no internet connection to build an electron application?
Currently all of our application dependencies are installed using Yarn with an offline folder.
The Electron binaries are installed using an environment variable to point a local folder.
Is something similar available with Electron Builder - apologies I couldn't find anything in the documentation or on the line.
Use env ELECTRON_BUILDER_CACHE — set it to path to some local dir, build with internet access, and then somehow save this to use later as offline cache.
But please note — for code signing, you have to use online timestamped server
Hi @develar ,
Many thanks for the quick response. Is there any way to build an Electron app in a completely offline environment end to end including code signing?
@WebStew Probably you can setup own timestamp server for windows codesign, but I am not sure about macOS codesign. Sorry, cannot advice here, need to investigate.
See https://www.electron.build/configuration/win
rfc3161TimeStampServer and timeStampServer (you need to set both).
macOS info: https://stackoverflow.com/a/19464252
Many thanks for all the information @develar
Most helpful comment
Use env
ELECTRON_BUILDER_CACHE— set it to path to some local dir, build with internet access, and then somehow save this to use later as offline cache.But please note — for code signing, you have to use online timestamped server