How to package electron app into one big executable file, not a directory include many files.
We want to using electron to develop a app for our business client ,but do not want to let them see our resource files. so we need to build a single file executable file from source
That's not the only answer. You can use the asar option to "conceal your source code from cursory inspection" (as it says in the application packaging tutorial for Electron).
How to unpack a single exe file produced by Electron builder?
You can use this instead https://github.com/electron/windows-installer