mirror of
https://github.com/daijro/camoufox.git
synced 2026-11-19 00:07:28 +00:00
The default addon was fetched from AMO's latest-version URL the first time it was needed, and that copy was reused for good. So two machines on the same Camoufox release could run different uBlock Origin builds, depending on the day each cache was filled, and a new uBO release reached users without passing through CI. python/src/camoufox/addons.json now names the build: its AMO file URL, version and sha256. Both packages read it, check each download against the sha256 before extracting it, and cache each version in its own directory, addons/<name>/<version>/, so a bump installs fresh instead of reusing another release's copy. The file's note says where a bump takes its values from. The install gate now checks that fetch left the pinned uBO in the cache, and no staging directories, as it already did for the GeoIP database.