From 33d5101bf565ba6022e3f37c852d2de06bb8af92 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Thu, 18 Dec 2014 22:07:59 +0100 Subject: [PATCH] OSX release script now expects cert signer as an additional parameter. --- admin/mac/build-release-osx.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/admin/mac/build-release-osx.sh b/admin/mac/build-release-osx.sh index 8ec8aaa06..d9b00aa63 100755 --- a/admin/mac/build-release-osx.sh +++ b/admin/mac/build-release-osx.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# Usage: ./admin/mac/build-release-osx.sh [--no-clean] +# Usage: ./admin/mac/build-release-osx.sh VERSION CERT_SIGNER [--no-clean] # ################################################################################ @@ -20,12 +20,13 @@ function die { if [ -z $1 ] then - echo This script expects the version number as a parameter, e.g. 1.0.0 + echo This script expects the version number and cert-signer as parameters, e.g. "1.0.0 John Doe" exit 1 fi ROOT=`pwd` VERSION=$1 +CERT_SIGNER=$2 ################################################################################ @@ -43,7 +44,7 @@ VERSION=$1 cd .. header "Signing bundle" - codesign -s "Developer ID Application: Leonardo Franchi" -f -v ./Tomahawk.app + codesign -s "Developer ID Application: $CERT_SIGNER" -f -v ./Tomahawk.app $ROOT/../admin/mac/create-dmg.sh Tomahawk.app mv Tomahawk.dmg Tomahawk-$VERSION.dmg