Files
warp-engine-client/package.json
T
mr.zeroandClaude Opus 5 cb8a28b156 Ask a registry which store to install
The client had our store's config URL compiled into it, which meant a second store
— or anybody else's site — needed a release of this app. It now asks
`GET /api/stores` and installs what the site offers: one record and there is
nothing to decide, several and the setup screen shows a picker.

From a record the client works the rest out. `storeRepositoryUrl` gives the
`config.json` to read, and that file stays the authority on how the store behaves;
`catalogUrl` and `name` override its `store.base_url` and `store.name`, because the
registry is what says which catalog a store is *for*. The store id — which names
the store home and the folder games land in — comes from the repository name, so
`ttg-desktop-store` becomes `ttg`.

A repository with no `config.json` still installs: the engine merges whatever it
is handed onto its own defaults, so the client writes a three-field config and the
store behaves like the default one pointed at that catalog. That was worth having
rather than an error, and it is tested.

The registry address is now the single thing about a particular site left in the
client, and `STORES_API` overrides it — which is how this was tested, against a
local endpoint serving the same payload the site returns, with one store that has a
config and one that has not. Both installed; the engine listed all ten titles with
the synthesised config.

`npm run uitest` now passes on either outcome — the grid when a store is present,
the setup gate with a populated picker when there is none — and it reports both, so
the gate cannot silently regress into an empty screen. Run with the registry
unreachable it produces the retry gate, and fails, which is the honest verdict: a
client that cannot reach the registry cannot set anything up.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-18 13:13:36 +02:00

61 lines
1.4 KiB
JSON

{
"name": "warp-engine-desktop-gui",
"productName": "WarpEngine Store",
"version": "1.1.0",
"description": "Graphical client for a WarpEngine desktop store: install the catalog into your own application menu.",
"license": "MIT",
"author": "Teletype Games <games@teletype.hu>",
"homepage": "https://git.teletypegames.org/stores/warp-engine-desktop-gui",
"main": "main.js",
"engines": {
"node": ">=22"
},
"scripts": {
"start": "electron .",
"smoke": "node scripts/smoke.js",
"dist": "electron-builder",
"dist:mac": "electron-builder --mac",
"dist:win": "electron-builder --win",
"dist:linux": "electron-builder --linux",
"uitest": "electron . --selftest"
},
"devDependencies": {
"electron": "^43.4.0",
"electron-builder": "^26.15.3"
},
"build": {
"appId": "org.teletypegames.warpstore.gui",
"productName": "WarpEngine Store",
"files": [
"main.js",
"preload.js",
"lib/**/*",
"renderer/**/*"
],
"mac": {
"category": "public.app-category.games",
"target": [
"dmg",
"zip"
]
},
"win": {
"target": [
"nsis",
"portable"
]
},
"linux": {
"category": "Game",
"target": [
"AppImage",
"deb"
]
},
"afterPack": "scripts/after-pack.js"
},
"allowScripts": {
"electron@43.4.0": true
}
}