Original engine source, exact Leaf Arcade build/integration scripts, fflate 0.8.3 source and generated-runtime/linked-library sources accompany this distribution. Numbered parts concatenate in order. Original Heroes II resources are not included.
# Download fheroes2-1.1.17-source.tar.gz SHA-256: 29f0be1a15ecce658e647b8c3d3fe2e6acddf6fa2144b1e05c82984846f568a1
# Download leaf-integration-source.tar.gz SHA-256: 09219f57d197282c8245d107fd2300c3ba86841bf4b7c45b2fd15a34680ca8b6
cat fheroes2-toolchain-source.tar.gz.part* > fheroes2-toolchain-source.tar.gz SHA-256: 8363860f27dbc9a36f4531ca015684f0ad29841f0a9e5b83b4f39bd5d21df06b
Rebuild with Emscripten 4.0.23 and gettext: unpack the engine source, activate the SDK, then run the supplied scripts/fheroes2/compile.sh in that source directory. It changes only the incoming/exported JavaScript API flags, builds without threads, and preserves upstream rules. To recreate the browser package, use scripts/build-fheroes2.py --emsdk /path/to/emsdk in the Leaf Arcade workspace with npm dependencies installed.