- Download the project (and extract it, if it was downloaded as an archive).
- Open a command prompt and navigate it to the projects root folder.
- Open a command prompt and run
npm run buildthen
npm run watch
- Open another command prompt and wait for
buildto complete, then run
npm run start
build command compiles the source code, and copies the resources, to the
watch command runs a piece of software that detects changes made to the source code and resources, and re-builds the application whenever a change is detected. Highly recommended to leave running while you are developing (and preferably within sight, since it shows compilation errors - also because it crashes sometimes).
start command launches the current build of the application. This will not automatically update when you change the source code or resources, you have to restart it manually.
npm run release:PLATFORM (where
PLATFORM is either
The release builds can be found in the
dist folder (the folder is created when making a release build).
"Not allowed to load local resource" Error
If this error appears in the electron applications console, it is probably because the file it is looking for does not exist. To solve this, run
npm run build
Not allowed to load local resource: file:///<ProjectPath>/build/renderer/index.html