Electron-builder: Question : Able to build electron application in offline environment with no internet connection?

Created on 7 Aug 2018  Â·  7Comments  Â·  Source: electron-userland/electron-builder

  • 20.26.1:

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.

question

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

All 7 comments

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).

Many thanks for all the information @develar

Was this page helpful?
0 / 5 - 0 ratings