GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit 21138997 authored by Cecylia Bocovich's avatar Cecylia Bocovich
Browse files

Update each tb binary individually

This modifies update_files to update each tor browser binary in gitlab,
internet archive, and google docs, and then delete the binary before
downloading the next one. This will save storage space on the gettor
host.
parent ff078106
...@@ -23,6 +23,7 @@ git commit -am 'Create release branch' ...@@ -23,6 +23,7 @@ git commit -am 'Create release branch'
git checkout -b torbrowser-releases git checkout -b torbrowser-releases
git push -f --follow-tags origin torbrowser-releases git push -f --follow-tags origin torbrowser-releases
rclone delete gdrive:releases
for row in $( for row in $(
curl -s 'https://aus1.torproject.org/torbrowser/update_3/release/downloads.json' | curl -s 'https://aus1.torproject.org/torbrowser/update_3/release/downloads.json' |
...@@ -34,6 +35,7 @@ for row in $( ...@@ -34,6 +35,7 @@ for row in $(
tr -d '",' tr -d '",'
); );
if [[ $r = *[!\ ]* ]]; then if [[ $r = *[!\ ]* ]]; then
# Update GitLab
git fetch --all git fetch --all
wget $r wget $r
git add . git add .
...@@ -44,14 +46,17 @@ for row in $( ...@@ -44,14 +46,17 @@ for row in $(
else else
git push -f --follow-tags origin torbrowser-releases git push -f --follow-tags origin torbrowser-releases
fi fi
fi;
done
rclone delete gdrive:releases f=${r##*/}
# Update Google Drive
rclone copy $f gdrive:releases
for f in $(ls); do # Update Internet Archive
# Update Google Drive ia upload ${f} $f --remote-name=$f --metadata="title:${f}" --metadata="mediatype:software" --metadata="collection:open_source_software"
rclone copy $f gdrive:releases
# Update Internet Archive rm $f
ia upload ${f} $f --remote-name=$f --metadata="title:${f}" --metadata="mediatype:software" --metadata="collection:open_source_software"
fi;
done done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment