Creating desktop app

Install

Running your project as a desktop app is really easy thanks to Electron.

1. First you will need to have Node.js installed.

2. Download Electron template project and unzip it.

3. Install npm depedencies.

$ npm install

4. Open the project in Panda 2.

5. Then start the project also in Electron.

$ npm start

Now you can develop your game on Panda 2 and see changes taking effect instantly also as a desktop app.


Project running in Panda 2.


Project running in Electron.

You can also turn your existing project into desktop app by copying main.js and package.json files into your project folder. Then just repeat from step 3.

$ npm install
$ npm start

Publish

There are many options for publishing Electron app. The one that i would recommend is electron-build.