1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 19:30:21 +02:00

OSX release script now expects cert signer as an additional parameter.

This commit is contained in:
Christian Muehlhaeuser
2014-12-18 22:07:59 +01:00
parent e9240d96a5
commit 33d5101bf5

View File

@@ -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