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 64abe72deb197b9de70a23c70ab201d329cfe1f5 Author: Nicolas Vigier boklm@torproject.org AuthorDate: Wed Mar 16 19:42:12 2022 +0100
Bug 40414: Improve macos-signer-stapler
- get tbb_version, and bundle_locales from config - automatically change to ~/$tbb_version directory --- tools/signing/macos-signer-stapler | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-)
diff --git a/tools/signing/macos-signer-stapler b/tools/signing/macos-signer-stapler index d82c485..e7ed1f7 100755 --- a/tools/signing/macos-signer-stapler +++ b/tools/signing/macos-signer-stapler @@ -1,19 +1,18 @@ +#!/bin/bash +set -e + +script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +source "$script_dir/functions" + STAPLER=/Users/torbrowser/Xcode.app/Contents//Developer/usr/bin/stapler -TORBROWSER_VERSION=$1 -if [ -z "$TORBROWSER_VERSION" ]; -then - echo "Please call this script with a Tor Browser version!" - exit 1 -fi -if [ -z "$BUNDLE_LOCALES" ]; -then - BUNDLE_LOCALES="ar ca cs da de el en-US es-AR es-ES fa fr ga-IE he hu id is it ja ka ko lt mk ms my nb-NO nl pl pt-BR ro ru sv-SE th tr vi zh-CN zh-TW" -fi -for LANG in $BUNDLE_LOCALES + +cd ~/${tbb_version} + +for LANG in $bundle_locales do echo "Stapling $LANG..." cd $LANG $STAPLER staple Tor\ Browser.app - zip -qr ../tb-${TORBROWSER_VERSION}_$LANG-stapled.zip Tor\ Browser.app + zip -qr ../tb-${tbb_version}_$LANG-stapled.zip Tor\ Browser.app cd .. done