1DOLLY 82PACKAGE zero-ad-data3REQUIRES HOST runtime@045# Build-only: 0 A.D.'s release data as the game reads it here, made from6# Wildfire Games' archive with Dolly's Python, XZ and Naga: the Petra AI patch,7# the SPIR-V shaders translated to WGSL, the content in archives below the8# site's 25 MiB file limit, and the scripts and maps of a game without graphics.9FROM /Dollyfile-system-tools 7dc08859cff6c590c9bf42278822be15b530cc9d18438481449469995c2bf8fe10USE /demos/python/Dollyfile-python caf80d3cd27594e1ed0bc4bbd8d586359be411b6f5328e5d3fe89c4a6951576f11USE /demos/tools/Dollyfile-xz 1ee07b9f2944f5dc4599228939c64a0918ccac7f591bbcced5d13338b267102412USE /demos/rust/Dollyfile-naga 52f8392217dab313e09c26abc20cd21cbfbcb219df6d88550272eb30c7867d9c13REQUIRES TOOL python314REQUIRES TOOL xz15REQUIRES TOOL naga16REQUIRES TOOL patch17REQUIRES TOOL sha256sum18REQUIRES TOOL grep19REQUIRES TOOL tar20REQUIRES TOOL cat21REQUIRES TOOL rm2223# The release archive in two halves, as one SOURCE holds at most 1 GiB:24# joined, they are the archive whose digest config/source-pins.sh pins.25SOURCE /dist/static/zero-ad-data/0ad-unix-data.tar.xz.1 114469c71f00fe27827d5b8ca96211a6b0ab115507c13a07efc022a3a9f2d9de /tmp/0ad/data.tar.xz.126SOURCE /dist/static/zero-ad-data/0ad-unix-data.tar.xz.2 e52b10890c95af42fcad151821d53e403d8a2766d498b60c2cdda6323078a7ec /tmp/0ad/data.tar.xz.227SLOP cat /tmp/0ad/data.tar.xz.1 /tmp/0ad/data.tar.xz.2 | sha256sum | grep -qx 'e844b30ae2102c47e0a4fff2f0e0ef05ba0cebb1890aa72276fa12457c39526f  <stdin>'2829# The scripts beside this recipe in toolchain/, ICU 68.2's data file, and the30# engine's translations and the licences from 0 A.D.'s source release.31SOURCE /dist/static/zero-ad-data/tools.tar 7210229c262bf9dc91aae9cb9779e58dc93591de793a2051eeb7a5982eec6910 /tmp/0ad-tools.tar32SLOP tar -xf /tmp/0ad-tools.tar -C /33# Python reads the release as it is unpacked and keeps its 3.6 GB of archives34# in its own memory; each half goes once read.35SLOP time slop -c 'cat /tmp/0ad/data.tar.xz.1 && rm /tmp/0ad/data.tar.xz.1 && cat /tmp/0ad/data.tar.xz.2 && rm /tmp/0ad/data.tar.xz.2' | xz -dc | python3 /tmp/0ad-tools/package-data.py /tmp/0ad-source naga /opt/0ad /usr/share/zero-ad/headless-data.tar /usr/share/zero-ad/shaders3637# zero-ad copies /opt/0ad; the engine's tests read the rest.38FOLDER /opt/0ad39FOLDER /usr/share/zero-ad40