The preceding part just copied your Electron application, and the files were simply placed under the Electron prebuilt resources directory. This will expose the source to the end user. Users can just navigate to the resources
folder to get the real source code of the application. Electron provides a simple archiving format called asar that can be used to package the source code into a zip like a file format. Asar is a simple archive format created for Electron apps. With asar, it still can be extracted into the actual code structure. However, it gives some way to archive all your source code into a single file, which hides the source code from the user. Once the asar is created, you then need to place the file into the resources directory and rename the file into app.asar
so that the Electron shell can detect the application automatically.
On Windows and Linux, the structure should be as follows after copying the asar archive:
Electron Prebuilt ...