mac, win, linux: Platform-specific configurations.īy default, Electron-builder will look for an app icon in /build/icon.png - so you should be good to go as long as you put it in the public directory (Create React App build process will take care of moving it to the build directory).įor more info, see the Electron-builder icons documentation.files: Global of additional files (outside of directories.buildResources) required by the app to run.directories.buildResources: Path of the root dir that holds resources not packed into the app.productName: The name of the app, as shown in the app executable.appId: The application ID used to identify the app in the macOS (as CFBundleIdentifier) and Windows (as App User Model ID). Module to control the application lifecycle and the native browser window. This script controls the main process, which runs in a full Node.js environment and is responsible for managing your app’s lifecycle, displaying native interfaces, performing privileged operations, and managing renderer processes.Įlectron’s main script is often named main.js and stored in /electron/main.js, but in our case, we’ll name it electron.js (to disambiguate it) and store it in /public/electron.js (so that Create React App will automatically copy it in the build directory). The next step is creating Electron’s main script. We’ll use it to wait for the React app to be built before we open the Electron app (while developing).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |