richard pushed to branch main at The Tor Project / Applications / tor-browser-build
Commits: dc1b6f12 by Nicolas Vigier at 2023-10-26T11:38:51+02:00 Bug 40979: Add redirects from old linux filenames in .htaccess, part 2
In a previous commit we already updated projects/release/build for that, however we re-generate the .htaccess file during the signing process, in tools/signing/staticiforme-prepare-cdn-dist-upload.
- - - - -
1 changed file:
- tools/signing/staticiforme-prepare-cdn-dist-upload
Changes:
===================================== tools/signing/staticiforme-prepare-cdn-dist-upload ===================================== @@ -11,6 +11,17 @@ RewriteRule ^sha256sums.txt.asc$ sha256sums-unsigned-build.txt.asc RewriteRule ^sha256sums.incrementals.txt$ sha256sums-unsigned-build.incrementals.txt RewriteRule ^sha256sums.incrementals.txt.asc$ sha256sums-unsigned-build.incrementals.txt.asc EOF + +# Adding redirects for tor-browser-build#40979 +if is_project torbrowser; then + cat >> "$dist_dir/.htaccess" << 'EOF' +RewriteRule ^tor-browser-linux64-(.*)_ALL.tar.xz.asc$ tor-browser-linux-x86_64-$1.tar.xz.asc +RewriteRule ^tor-browser-linux64-(.*)_ALL.tar.xz$ tor-browser-linux-x86_64-$1.tar.xz +RewriteRule ^tor-browser-linux32-(.*)_ALL.tar.xz.asc$ tor-browser-linux-i686-$1.tar.xz.asc +RewriteRule ^tor-browser-linux32-(.*)_ALL.tar.xz$ tor-browser-linux-i686-$1.tar.xz +EOF +fi + chgrp -R tb-release "$dist_dir" chmod 775 "$dist_dir" chmod 664 "$dist_dir"/*
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/dc...