Layout for using the build scripts The scripts were used in a separate working tree; they never modify an installed application. To reproduce the same layout after extracting this legal bundle: TimbrAI/ tools/ copy the Python scripts from this directory here public/downloads/timbrai/legal/ put this entire legal bundle here build/legal-runtime/ Runtime/ a copy of the matching downloaded Python engine ffmpeg-8.1.2/ extracted source ffmpeg-install/ built shared libraries lame-4.0/ extracted source lame-install/ built shared libraries lameenc-/ extracted lameenc source directory av-18.1.0/ extracted PyAV source wheels/ locally built PyAV wheel gcc13-arm64-sonoma.tar.gz bottle identified by gcc13/provenance.json gcc13-bottle/ three dylibs extracted from that bottle See ../REBUILD-AND-REPLACE.txt for configure and compiler commands. Run the installation scripts in this order, once per clean Runtime copy: python3 tools/install_lgpl_ffmpeg.py python3 tools/install_lgpl_lame.py python3 tools/install_rebuilt_pyav.py python3 tools/install_documented_gcc.py The scripts preserve the previous libraries outside Runtime. Those backups are not part of the distributable engine. They refuse to overwrite an earlier build. For LGPL-compatible local replacement, retain the separate shared libraries and the Python entitlement in python-library-replacement.entitlements. Example: codesign --force --sign - --options runtime \ --entitlements python-library-replacement.entitlements Runtime/bin/python3.11 When signing for distribution, use the distributor's Developer ID identity for the Python executable and preserve this entitlement. Do not apply it to unrelated applications or alter global macOS security settings. The application-level audio smoke test and the recorded test results are included with the preparation workspace in qa/. They verify MP3 encoding, WAV/MP3/M4A/FLAC/ OGG decoding and resampling, and SciPy resampling and LAPACK with the new libraries.