Nativefier: [question] Help with China GFW and using a cached / pre-downloaded Electron

Created on 30 Apr 2020  Â·  6Comments  Â·  Source: jiahaog/nativefier

Hi,there.
I'd like to know how to build Windows App like *.exe on my Ubuntu18.04.
I'm in China...So you know that the network of downloading is big problem.
After I successfully built my linux app on Ubuntu18.04, I found it will cost me 11211s finish downloading...
Hope to hear from you soon
Yours sincerely.

All 6 comments

Also,may i know how can i use my downloaded zipfile "electron-v8.2.3-win32-x64.zip"to package, instead of take 11211s to download?
as you know, our Net is much more "different"&"difficult"~

Actually, i've download "electron-v8.2.3-win32-x64.zip"from a Chinese mirror, and i use npm i [email protected] -gto install it. However, after i began to package my website, it started downloading "electron-v8.2.3-win32-x64.zip" again...... That's rellay annoying...

@MX-Qulin yeah, trouble with China's Great FireWall happens for some of our users; see existing issues.

As for your caching question, under Windows I don't exactly know. You should put the downloaded Electron zip at the place electron-packager does its caching. Under Linux it's in ~/.cache/electron, under Windows it must be somewhere in C:\Users\YourUsername\AppData\.... Feedback welcom if you figure it out.

Will, the problem seems to be fixed.
However, it seems that i can only packge x86 packages on my Windows x86 Platfrom.
Is there a way to make x64 package on my Windows x86 computer?
Also,is that ture that Windows computers must installed .NET Framework 4.5.2+ to run the EXE?
Thank you:)

emmm.... i met another problem.
After packageing, i ran the exe but it looks like this:
Uploading 图片1.png…
the image's url is img1
Also i'll show you the package folder.
Uploading 图片2.png…
the image's url is img2
Another problem is that my website nees zooming so that it provents better view. How can i set the zoom or let Users manually zoom it?

export ELECTRON_GET_USE_PROXY=1 # 值为1或true
export GLOBAL_AGENT_HTTP_PROXY=http://proxy.example.com:1080
export GLOBAL_AGENT_HTTPS_PROXY=https://proxy.example.com:1080

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jamiewilson picture jamiewilson  Â·  5Comments

raulcraveiro picture raulcraveiro  Â·  4Comments

jjgalvez picture jjgalvez  Â·  3Comments

shnbhg picture shnbhg  Â·  5Comments

mklaber picture mklaber  Â·  5Comments