[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser-build][main] Bug 40979: Add redirects from old linux filenames in .htaccess, part 2



Title: GitLab

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:

Changes:

  • tools/signing/staticiforme-prepare-cdn-dist-upload
    ... ... @@ -11,6 +11,17 @@ RewriteRule ^sha256sums.txt.asc$ sha256sums-unsigned-build.txt.asc
    11 11
     RewriteRule ^sha256sums.incrementals.txt$ sha256sums-unsigned-build.incrementals.txt
    
    12 12
     RewriteRule ^sha256sums.incrementals.txt.asc$ sha256sums-unsigned-build.incrementals.txt.asc
    
    13 13
     EOF
    
    14
    +
    
    15
    +# Adding redirects for tor-browser-build#40979
    
    16
    +if is_project torbrowser; then
    
    17
    +  cat >> "$dist_dir/.htaccess" << 'EOF'
    
    18
    +RewriteRule ^tor-browser-linux64-(.*)_ALL.tar.xz.asc$ tor-browser-linux-x86_64-$1.tar.xz.asc
    
    19
    +RewriteRule ^tor-browser-linux64-(.*)_ALL.tar.xz$ tor-browser-linux-x86_64-$1.tar.xz
    
    20
    +RewriteRule ^tor-browser-linux32-(.*)_ALL.tar.xz.asc$ tor-browser-linux-i686-$1.tar.xz.asc
    
    21
    +RewriteRule ^tor-browser-linux32-(.*)_ALL.tar.xz$ tor-browser-linux-i686-$1.tar.xz
    
    22
    +EOF
    
    23
    +fi
    
    24
    +
    
    14 25
     chgrp -R tb-release "$dist_dir"
    
    15 26
     chmod 775 "$dist_dir"
    
    16 27
     chmod 664 "$dist_dir"/*
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits