jumPhp/games/hello-desktop/config/game.yaml
David Nurdin 6a088318f4 Desktop apps update themselves: bin/jumphp app:release, JumPHP\Tauri\Updater
- app:release <app> --url <base>: app:export, then update.json signed (ECDSA P-256 key in ~/.jumphp/keys, public
  half in config/update.pub): version, notes, each exported system's executable (address, size, SHA-256)
- $app->updater(): check() (signature, app id, newer version), Update::install() (download, SHA-256, the executable
  replaced; Windows: *.old moved aside), relaunch(); JUMPHP_UPDATE_URL
- the standalone stub defines JUMPHP_EXECUTABLE (micro runs the executable itself as the script)
- hello-desktop: Help > Check for updates (tried for real on Xvfb: 0.1.0 found 0.1.1, installed it and restarted)
- docs: the macOS .app, updates

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JkYTqpYNZKwTnRZHQRD5HP
2026-11-01 08:27:08 +01:00

22 lines
1.1 KiB
YAML

# A desktop app (ui: webview). Every key is optional (docs/tauri.md).
game:
id: hello-desktop
title: "Hello Desktop"
version: 0.1.0
description: "The JumPHP desktop app example: a notepad whose pages are HTML and whose logic is PHP (files, native dialogs, notifications)."
lang: en
ui: webview # a desktop app (Tauri), not an SDL game: bin/jumphp app:* commands
main: App\Main # its boot(App $app) registers the commands the pages call
app:
pages: ui # the folder of the HTML / CSS / JS pages (served as tauri://localhost/)
tick_hz: 60 # frames a second when nothing happens (timers, HTTP, tasks)
native_commands: true # pages may call jumphp.invoke('native.open' / 'native.message' / ...)
# update: {url: https://example.com/hello-desktop/update.json} # Help > Check for updates (bin/jumphp app:release)
window: # the main window
url: index.html
width: 980
height: 680
min_width: 480
min_height: 320
resizable: true
devtools: false # true: the WebView inspector opens with the window