![]() Windows runs without errors, but times out. MacOS build runs quick and finishes successfully. if then powershell -command 'yarn package:win' fi DEBUG=electron-builder BUILD_COMMIT_SHA1="$TRAVIS_COMMIT" NODE_ENV=production NPM_CONFIG_PRODUCTION=false Now type npm i electron, and it will download it.- if then powershell -command 'Set-MpPreference -DisableRealtimeMonitoring $true' fi npmrc and write there: ELECTRON_MIRROR=" site/sandbox/electron/ Go to your project and create file called. Put the SHASUM256.txt and the zip file inside v13.1.2 folder. Inside sandbox create folder called electron, and inside electron create folder called v13.1.2. In jfrog artifactory create a "generic repository" for ex' called sandbox. Go to github and download SHASUM256.txt and electron-v13.1.2-win32-圆4.zip. (You can check it without copy to offline pc, by simply turn your internet access to flight mode and see it will go to cache)īut the real solution need to be with mirroring. Now in the offline pc, when you try to execute npm i electron. ![]() Everything there is important the Shasum256. So copy to your offline pc all the electron\Cache directory. In my windows pc its located in: C: \Users\baruch\AppData\Local\electron\Cache\some string This will cache the electron.zip in your computer. In computer with internet execute the command: npm i electron So to install electron offline, i recommend to do the following steps: For example: /var/and then you can start the server with: $ http-server /var/www The file should be in the folder v12.0.0. ![]() Now you need to make sure the file is in the correct folder, and you need to set the environment variables as described in export ELECTRON_MIRROR= export ELECTRON_CUSTOM_DIR=v12.0.0Įxport ELECTRON_CUSTOM_FILENAME=electron-v12.0.0-win32-圆4.zip The http server should be running during the (post) installation of electron. You could use any http server you have access to, to serve localhost such nginx, apache2, or just node.js using the http package as described here: What I ended up quickly doing is just to serve the file from localhost, by running a simple temporary http server using http-server. ![]() Even though you don't have a mirror site that does not mean that you cannot serve the file: electron-v12.0.0-win32-圆4.zip. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |