[tbb-commits] [Git][tpo/applications/tor-browser-build][main] Bug 40979: Add redirects from old linux filenames in .htaccess, part 2
richard (@richard)
git at gitlab.torproject.org
Tue Oct 31 18:06:16 UTC 2023
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/dc1b6f12017af43bb58330cf498b468fb509d174
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/dc1b6f12017af43bb58330cf498b468fb509d174
You're receiving this email because of your account on gitlab.torproject.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20231031/22254eed/attachment-0001.htm>
More information about the tbb-commits
mailing list