
- #Create a desktop app for mac how to#
- #Create a desktop app for mac install#
- #Create a desktop app for mac full#
- #Create a desktop app for mac software#
- #Create a desktop app for mac license#
Main.js is your application’s main process and index.html is your Electron application renderer process. The Electron main process is run on the Node.js runtime.įor that, you’ll be working with two files: main.js and index.html. Let’s start writing your first Electron application.Įlectron operates with two types of processes: the main process (server-side) and the renderer process (client-side).

Step 3 - Writing the “Hello World!” Application Now you’ll write your first hello-world application using the Electron framework. You’ve installed Electron to your machine and created the project folder to build your application.
#Create a desktop app for mac install#
To install the package as devDependencies use the -save-dev flag with your command.


The devDependencies property is usually used to define the dependencies the module needs to run in development. The dependencies property is used to define the dependencies that a module needs to run in production. There are two dependency properties dependencies and devDependencies that can be identified with a key difference. The dependency property takes an object that has the name and version for each dependency. "test": "echo \"Error: no test specified\" & exit 1" "description": "hello world application on Electron.js", Having followed the prompts you’ll receive the following output:
#Create a desktop app for mac license#
From there you can use a preferred license for your project, but this is not mandatory.
#Create a desktop app for mac full#
For more details, check the full list of SPDX license IDs. The most common licenses are: MIT, BSD-2-Clause, and ISC. The license of your package specifies how others are permitted to use the application, and any restrictions you’re placing on it. Note: In this tutorial we’re leaving the author and license empty, but you can use your first and last name as the author depending on your project status. In this case, main.js is the entry point of the package.json file.įor the remaining questions, accept the defaults with ENTER. The file invoked at the initial run time of application is known as the entry point. Next, for the entry point, enter main.js. There you can add a description of your project, something like: hello world application on Electron.js. To use v1.0.0, which comes as default, press ENTER.Īfter that, it asks for a description. You can use the default application name, hello-world, as your package name. You will be asked a series of questions, starting with the package name. To create the package.json file, run the following command:
#Create a desktop app for mac how to#
Follow the How to Install Node.js and Create a Local Development Environment on macOS tutorial.

#Create a desktop app for mac software#
The author selected the Apache Software Foundation to receive a donation as part of the Write for DOnations program.
