An adaptation pack is the patch set (exe, GUI, native definitions and version records) released on its own, so a new game build can be adapted without a new offline version. It is a zip with a manifest, signed with Ed25519, published as a GitHub release tagged patches-<YYYY.MM.DD[.N]>. - packages/patcher/src/patch-pack: manifest and version numbers, zip writing and reading with path and size checks, signatures, a check that a patch set reads as a whole; tuning/patch-pack.jsonc holds the repository and the limits. - scripts/generate-patch-signing-key.ts writes the public key for the repository and the private key outside it; scripts/build-patch-pack.ts packs only committed files and signs with PATCH_SIGNING_KEY. - .github/workflows/patch-pack.yml packs, signs and publishes on a patches-* tag or a manual run. - Launcher main process: find the newest pack release, download, verify, unpack into user data and make it active; resource paths use the active pack when it is usable (a repository checkout only with WTO_USE_PATCH_PACK=1). The pages that show and start this come later.
15 lines
671 B
JSON
15 lines
671 B
JSON
// Adaptation packs (packages/patcher/src/patch-pack/): where the launcher looks for them and the
|
|
// limits it applies to what it downloads.
|
|
{
|
|
// GitHub repository whose Releases carry the packs (tags `patches-<version>`).
|
|
"repository": "N0VAN0M4LY/WT-Offline",
|
|
// How many of the newest releases one check reads; packs are found among them.
|
|
"releases_per_check": 30,
|
|
// Largest pack (zip) the launcher downloads, and the most its files may add up to unpacked.
|
|
// The whole patch set is about 0.2 MB today.
|
|
"max_pack_bytes": 16777216,
|
|
"max_unpacked_bytes": 67108864,
|
|
// A request to GitHub that takes longer is given up.
|
|
"request_timeout_ms": 20000
|
|
}
|