Recently I was attempting to convert my Playcanvas game into a desktop app, and was going throught the documentation on the same. Currently, the documentation only lists Node webkit(NW.js) for this. However, after a bit of research, I found an easier method to do this, since NW.js docs are quite convoluted. My method is this:-
- Embed the game in an iframe and then publish the html online using https://htmlsave.com/.
- Download node.js and then install and convert the app using nativefier, which uses Electron to wrap the apps in a single terminal command. It is important to note that the direct published link will not work in nativefier, and thus the htmlsave link obtained from step 1 must be used.
After completing these two steps, one can obtain the desktop version of their Playcanvas project. I feel this method should be added to the documentation since it is easier to understand and execute as compared to NW.js.
I hope this is considered.