[tbb-commits] [builders/tor-browser-build] 27/32: Bug 40414: Improve macos-signer-stapler

gitolite role git at cupani.torproject.org
Wed Apr 20 09:39:04 UTC 2022


This is an automated email from the git hooks/post-receive script.

boklm pushed a commit to branch master
in repository builders/tor-browser-build.

commit 0f9db0e5e9030c8def5c2db8ed6fa8d2dfb9929f
Author: Nicolas Vigier <boklm at 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tbb-commits mailing list