steam_appid.txt
at the root of the repo and put the desired steam app id. The default (480
) is fine to use during development as it is the Steam default testing app.electron-main.js
, near the top of the file, set useSteam
to truesrc/index.ts
, near the top of the file, set useSteam
to truenpm run electron
(after building the game) or npm run run
(to build the game and then run electron automatically). The Steam overlay should work when doing this.npm run package
. The game will be in the out
folder.out
folder, it is possible to go in Steam and choose Add non-Steam game
, then browse to the path of the narrat-template.exe
inside the subfolders in out
folder, and add that .exe to Steam. It is then possible to run the game in Steam.out
folder should work on Steampackage
script in package.json
that copies the steam_appid.txt
to copy from the right folder depending on the architecture you're targeting.