This repo is a template to start a repo allowing you to build standalone release of your qspider game.
Generate new repository from this template. Make sure to check Include all branches
checkbox (this will activate Github Pages)
- clone repository
- put your game files into root folder
- fill in
game.cfg
(if you don't have one already) with game id, title and path to game starting file, use other settings when needed - replace
game-icon.png
with your game icon - it should be 1024x1024 pixels PNG - commit and push
- Go to Actions in repository
- in left sidebar select
Update github pages (game only)
- Click
Run worflow
dropdown in top left corner of the table and clickRun worflow
button inside dropdown - Select
All workflows
in left sidebar - Wait for
Update github pages (game only)
andpages build and deployment
workflows to complete
Now your game should be avaliable under URL you saw when configuring github pages (usually https://{user_name}.github.io/{repo_name}/)
- open terminal app and run
It will ask for password - make sure to remember it.
npx @tauri-apps/cli signer generate
- From output in console you need
- Copy public key (that comes after
Your public key was generated successfully:
text) and paste in intogame.build.conf.json
file intopubkey
field - Go to repository Settings - Secrets and Variables - Actions and in Repository secrets sections add 2 secrets
+ name:
TAURI_PRIVATE_KEY
, for value copy private key from cli output that comes after textYour secret key was generated successfully - Keep it secret!
+ name:TAURI_KEY_PASSWORD
, and as velue put the password used when generating keys
- Copy public key (that comes after
- open
game.build.conf.json
- update
package.productName
with your game name - set
package.version
if you want to start not with1.0.0
- change
tauri.bundle.identifier
- english letters only separated with dot - fill
tauri.bundle.publisher
,tauri.bundle.copyright
,tauri.bundle.shortDescription
andtauri.bundle.longDescription
fields - in
tauri.updater.endpoints
add link to your github pages withupdater.json
file (something https://{user_name}.github.io/{repo_name}/updater.json) - adjust game window settings in
tauri.window
section - commit and push
- Go to Actions in repository
- in left sidebar select
Game release
- Click
Run worflow
dropdown in top left corner of the table and clickRun worflow
button inside dropdown - Select
All workflows
in left sidebar - Wait for
Game release
workflow to complete - In left sidebar select
Update github pages (game and updater)
- Click
Run worflow
dropdown in top left corner of the table and clickRun worflow
button inside dropdown - Select
All workflows
in left sidebar - Wait for
Update github pages (game and updater)
andpages build and deployment
workflows to complete
Link to your release will appear on main repository page in right sidebar
- update your game assets in repository
- increate game version in
game.build.conf.json
file inpackage.version
field - commit and push
- go through steps in
Release desktop version
section
If you don't want online version of game - when making desktop release use Update github pages (updater only)
workflow instead of Update github pages (game and updater)
.
If you don't want to support autoupdates in your game
- skip whole
Generate signing keys for game auto updates
section - in
game.build.conf.json
settauri.updater.active
field tofalse
- remove
auri.updater.endpoints
,auri.updater.dialog
andauri.updater.pubkey
fields - use
Update github pages (game only)
workflow when updating web version