morgan pushed to branch main at The Tor Project / Applications / tor-browser-build
Commits:
-
5752074b
by Nicolas Vigier at 2025-03-17T19:46:58+00:00
-
181c3a6a
by Nicolas Vigier at 2025-03-17T19:46:58+00:00
-
ecd7d21b
by Nicolas Vigier at 2025-03-17T19:46:58+00:00
-
ca6a15eb
by Nicolas Vigier at 2025-03-17T19:46:58+00:00
6 changed files:
- tools/signing/download-unsigned-sha256sums-gpg-signatures-from-people-tpo
- tools/signing/functions
- tools/signing/staticiforme-prepare-cdn-dist-upload
- tools/signing/sync-builder-unsigned-to-local-signed
- tools/signing/upload-update_responses-to-staticiforme
- tools/signing/wait-for-finished-build
Changes:
... | ... | @@ -11,14 +11,14 @@ do |
11 | 11 | chmod 644 "$tmpfile"
|
12 | 12 | if test "$builder" = 'jb'; then
|
13 | 13 | file="$file.gpg"
|
14 | - urls=("https://cdn.stagemole.eu/hashes/$SIGNING_PROJECTNAME/$tbb_version-build$tbb_version_build/$file")
|
|
14 | + urls=("https://cdn.stagemole.eu/hashes/$SIGNING_PROJECTNAME/$tbb_version-$tbb_version_build/$file")
|
|
15 | 15 | else
|
16 | 16 | file="$file.asc"
|
17 | 17 | urls=( \
|
18 | - "https://people.torproject.org/~$builder/builds/$SIGNING_PROJECTNAME/$tbb_version-build$tbb_version_build/$file" \
|
|
19 | - "https://people.torproject.org/~$builder/builds/$SIGNING_PROJECTNAME/$tbb_version_type/$tbb_version-build$tbb_version_build/$file" \
|
|
20 | - "https://tb-build-02.torproject.org/~$builder/builds/$SIGNING_PROJECTNAME/$tbb_version_type/unsigned/$tbb_version-build$tbb_version_build/$file" \
|
|
21 | - "https://tb-build-03.torproject.org/~$builder/builds/$SIGNING_PROJECTNAME/$tbb_version_type/unsigned/$tbb_version-build$tbb_version_build/$file" \
|
|
18 | + "https://people.torproject.org/~$builder/builds/$SIGNING_PROJECTNAME/$tbb_version-$tbb_version_build/$file" \
|
|
19 | + "https://people.torproject.org/~$builder/builds/$SIGNING_PROJECTNAME/$tbb_version_type/$tbb_version-$tbb_version_build/$file" \
|
|
20 | + "https://tb-build-02.torproject.org/~$builder/builds/$SIGNING_PROJECTNAME/$tbb_version_type/unsigned/$tbb_version-$tbb_version_build/$file" \
|
|
21 | + "https://tb-build-03.torproject.org/~$builder/builds/$SIGNING_PROJECTNAME/$tbb_version_type/unsigned/$tbb_version-$tbb_version_build/$file" \
|
|
22 | 22 | )
|
23 | 23 | fi
|
24 | 24 | for url in "${urls[@]}"
|
... | ... | @@ -40,7 +40,7 @@ function generate_config { |
40 | 40 | "$SIGNING_PROJECTNAME" --target "$tbb_version_type")
|
41 | 41 | echo "SIGNING_PROJECTNAMES=(\"$p1\" \"$p2\" \"$p3\" \"$p4\")" > \
|
42 | 42 | "$script_dir/set-config.generated-config"
|
43 | - local tbb_version_type=$("$rbm" showconf browser \ var/browser_default_channel \
|
|
43 | + local tbb_version_type=$("$rbm" showconf browser var/browser_default_channel \
|
|
44 | 44 | --target "$SIGNING_PROJECTNAME")
|
45 | 45 | local tbb_version=$("$rbm" showconf browser var/torbrowser_version \
|
46 | 46 | --target "$SIGNING_PROJECTNAME" --target \
|
1 | 1 | #!/bin/bash
|
2 | 2 | set -e
|
3 | +no_generate_config=1
|
|
3 | 4 | script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
4 | 5 | source "$script_dir/functions"
|
5 | 6 |
... | ... | @@ -5,4 +5,4 @@ source "$script_dir/functions" |
5 | 5 | |
6 | 6 | var_is_defined ssh_host_builder builder_tor_browser_build_dir
|
7 | 7 | |
8 | -rsync $rsync_options "$ssh_host_builder:$builder_tor_browser_build_dir/$SIGNING_PROJECTNAME/$tbb_version_type/unsigned/$tbb_version-build$tbb_version_build/" "$signed_version_dir/" |
|
8 | +rsync $rsync_options "$ssh_host_builder:$builder_tor_browser_build_dir/$SIGNING_PROJECTNAME/$tbb_version_type/unsigned/$tbb_version-$tbb_version_build/" "$signed_version_dir/" |
... | ... | @@ -56,9 +56,11 @@ do |
56 | 56 | git commit -m "$tbb_version_type: new version, $tbb_version ($file)"
|
57 | 57 | done
|
58 | 58 | |
59 | -git add "$tbb_version_type"/download-android-*.json
|
|
60 | -git diff --quiet --cached --exit-code || \
|
|
61 | - git commit -m "$tbb_version_type: new version, $tbb_version (android)"
|
|
59 | +if is_project torbrowser; then
|
|
60 | + git add "$tbb_version_type"/download-android-*.json
|
|
61 | + git diff --quiet --cached --exit-code || \
|
|
62 | + git commit -m "$tbb_version_type: new version, $tbb_version (android)"
|
|
63 | +fi
|
|
62 | 64 | |
63 | 65 | git add "$tbb_version_type"
|
64 | 66 | git diff --quiet --cached --exit-code || \
|
... | ... | @@ -14,7 +14,7 @@ var_is_defined ssh_host_builder builder_tor_browser_build_dir |
14 | 14 | |
15 | 15 | while true
|
16 | 16 | do
|
17 | - ssh "$ssh_host_builder" test -f "$builder_tor_browser_build_dir/$SIGNING_PROJECTNAME/$tbb_version_type/unsigned/$tbb_version-build$tbb_version_build/sha256sums-unsigned-build.incrementals.txt" && \
|
|
17 | + ssh "$ssh_host_builder" test -f "$builder_tor_browser_build_dir/$SIGNING_PROJECTNAME/$tbb_version_type/unsigned/$tbb_version-$tbb_version_build/sha256sums-unsigned-build.incrementals.txt" && \
|
|
18 | 18 | exit 0
|
19 | 19 | echo "$(date -Iseconds): Waiting for build to finish..."
|
20 | 20 | sleep 5m
|