Enhance postcard puzzles and narration
This commit is contained in:
@@ -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()))
|
||||
|
||||
Reference in New Issue
Block a user