[tbb-commits] [builders/tor-browser-build] 07/32: Bug 40414: Improve the authenticode-timestamping.sh script
gitolite role
git at cupani.torproject.org
Tue May 10 11:34:01 UTC 2022
This is an automated email from the git hooks/post-receive script.
boklm pushed a commit to branch maint-11.0
in repository builders/tor-browser-build.
commit 4063e499cf73bac3a5ba2fcd206e967672e27002
Author: Nicolas Vigier <boklm at torproject.org>
AuthorDate: Mon Jan 17 12:56:52 2022 +0100
Bug 40414: Improve the authenticode-timestamping.sh script
---
tools/signing/authenticode-timestamping.sh | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/tools/signing/authenticode-timestamping.sh b/tools/signing/authenticode-timestamping.sh
index 77973b7..4e07ae3 100755
--- a/tools/signing/authenticode-timestamping.sh
+++ b/tools/signing/authenticode-timestamping.sh
@@ -32,10 +32,30 @@
set -e
+script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
+source "$script_dir/functions"
+
+osslsigncode_file="$script_dir/../../out/osslsigncode/osslsigncode-e72a1937d1a1-25066d.tar.gz"
+
+test -f "$osslsigncode_file" ||
+ exit_error "$osslsigncode_file is missing." \
+ "You can build it with:" \
+ " ./rbm/rbm build osslsigncode" \
+ "See var/deps in projects/osslsigncode/config for the list of build dependencies"
+
+which rename > /dev/null 2>&1 ||
+ exit_error '`rename` is missing.'
+
+tmp_dir="$signed_dir/$tbb_version/tmp-timestamp"
+mkdir "$tmp_dir"
+tar -C "$tmp_dir" -xf "$osslsigncode_file"
+export PATH="$PATH:$tmp_dir/osslsigncode/bin"
+
+cd "$signed_dir/$tbb_version"
COUNT=0
for i in `find . -name "*.exe" -print`
do
- /path/to/patched/osslsigncode add \
+ osslsigncode add \
-t http://timestamp.digicert.com \
-p socks://127.0.0.1:9050 \
$i $i-timestamped
@@ -44,3 +64,5 @@ do
done
echo "Timestamped $COUNT .exe files, now renaming"
rename -f 's/-timestamped//' *-timestamped
+
+rm -Rf "$tmp_dir"
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the tbb-commits
mailing list