A
A
Arseniy Sokolovsky2021-12-10 23:11:12
JavaScript
Arseniy Sokolovsky, 2021-12-10 23:11:12

How to properly build an application on Electron?

I wrote a site on the electron and I need to pack it as a program so that it cannot be unpacked and it starts normally for everyone, there are such commands in package.json:

"scripts": {
    "start": "electron .",
    "build": "electron-packager . myApp --platform=win32 --arch=x64 --out=build",
    "package": "electron-forge package",
    "make": "electron-forge make",
    "publish": "electron-forge publish",
    "lint": "electron src --color"
  }

build - builds an application for me, but all its files are open there:
61b3b2ae8c4a5294769068.png
package - builds an application for me, but all its files are also open there:
61b3b334c11a4856870939.png
make - now for some reason an error, but it seems to be building something like an installer that installs everything where and most likely everything also opens files:
61b3b3d20d39d679059473.png
publish - also for some reason an error

What can you suggest, how to build the application normally? Googled many times already, electron-forge make or package is everywhere, but this does not suit me. Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2021-12-11
@Kozack

Well, try moving to electron-builder instead of electron-forge

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question