November 2019
Beginner
436 pages
8h 52m
English
Now that you know how to set up build scripts for macOS and Ubuntu Linux, configuring for Windows shouldn't be a problem for you.
As I mentioned earlier, it is possible and also recommended to keep the configuration files for all platforms in a single code repository, inside the package.json file. The build scripts for Windows are shown in the following code:
{ "scripts": { "start": "electron .", "build:windows": "electron-builder --win --dir", "dist:windows": "electron-builder --win" }}
Both scripts should be familiar to you. The build:windows script creates an unpacked local build for development and testing purposes, while the dist:windows script prepares the application for distribution.
Let's try to build and run ...
Read now
Unlock full access