
Jack Le Hamster, who have both The Test of Insanity and The Supernatural Power Troll available on Steam, wrote a detailed blog post on how he managed to publish those web games using Electron.
This guide walks you through the steps needed to package your game as a desktop app, so that players can purchase them on Steam. The Supernatural Power Troll is a web game I’ve built in Phaser and packaged with Electron for Steam.
The guide will teach you how to do all the steps from testing, through packaging, to building:
- Test the game as a desktop app with Electron
- Package your game as an NPM ⁄ BunJS package
- Build your game as an app with electron-builder
- Commit your code into a repo on github.com
- Use GH workflow to build your game in various operating systems.
You can read the blog post, but you can also watch “8 easy steps to turn your web game into a Steam game using Electron” video on YouTube:
Also, don’t forget you can win 25 copies of The Supernatural Power Troll game in the upcoming Gamedev.js Jam 2025 that starts on April 13th.
HTML5 Game Developer, Enclave Games indie studio founder, js13kGames competition creator and Gamedev.js Weekly newsletter publisher. Mozilla Tech Speaker, Gamedev.js community firestarter. Organizes meetups / workshops / hackathons in Poland, passionate about new, Open Web technologies, excited about WebXR and PWAs. Likes eating sushi and playing Neuroshima Hex.