Enhance postcard puzzles and narration

This commit is contained in:
Hadrian Burkhardt
2026-11-14 08:55:48 +01:00
parent abaab927d9
commit b19295472d
158 changed files with 5257 additions and 1695 deletions
+13 -1
View File
@@ -25,12 +25,24 @@ def visit(value):
missing.append(value)
for name in ['index.html', 'flutter_bootstrap.js', 'main.dart.js',
for name in ['index.html', 'flutter_bootstrap.js', 'narration.js', 'main.dart.js',
'manifest.json', 'main.dart.wasm', 'main.dart.mjs', 'assets/AssetManifest.bin.json',
'assets/assets/fonts/DancingScript.ttf']:
if not (root / name).is_file():
missing.append(name)
bootstrap = root / 'flutter_bootstrap.js'
if bootstrap.is_file() and ('{{flutter_js}}' in bootstrap.read_text() or
'{{flutter_build_config}}' in bootstrap.read_text()):
raise SystemExit('Flutter bootstrap still contains source templates; serve the built output, not web/.')
postcards = Path('assets/postcards/recordings-source.json')
if postcards.is_file():
visit('assets/postcards/island-postcard-v1.png')
for card in json.loads(postcards.read_text()):
visit(f"assets/postcards/audio/{card['id']}.wav")
visit(f"assets/postcards/illustrations/{card['id']}.png")
font_manifest = root / 'assets/FontManifest.json'
if font_manifest.is_file():
visit(json.loads(font_manifest.read_text()))