1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-01-17 22:38:33 +01:00

* Integrated sparkle signing in release script.

This commit is contained in:
Christian Muehlhaeuser 2011-03-24 20:02:57 +01:00
parent 4558fd7e22
commit 8167a05b91
2 changed files with 12 additions and 2 deletions

View File

@ -16,6 +16,11 @@ function die {
}
################################################################################
if [ -z $1 ]
then
echo This script expects the version number as a parameter, e.g. 1.0.0
exit 1
fi
ROOT=`pwd`
@ -39,6 +44,7 @@ CLEAN='1'
BUILD='1'
NOTQUICK='1'
CREATEDMG='1'
VERSION=$1
header "Adding Qt to app bundle"
cd tomahawk.app
@ -62,6 +68,10 @@ CREATEDMG='1'
cd ..
mv tomahawk.app Tomahawk.app
$ROOT/../admin/mac/create-dmg.sh Tomahawk.app
mv Tomahawk.dmg Tomahawk-$VERSION.dmg
header "Creating signed Sparkle update"
$ROOT/../admin/mac/sign_bundle.rb $VERSION ~/tomahawk_sparkle_privkey.pem
mv Tomahawk.app tomahawk.app
header "Done!"

View File

@ -6,9 +6,9 @@ if ARGV.length < 2
exit
end
tarball = "tomahawk#{ARGV[0]}.tar.bz2"
tarball = "tomahawk-#{ARGV[0]}.tar.bz2"
puts "Zipping: #{tarball}..."
`tar jcvf "#{tarball}" tomahawk.app`
`tar jcvf "#{tarball}" Tomahawk.app`
puts "Signing..."
puts `openssl dgst -sha1 -binary < "#{tarball}" | openssl dgst -dss1 -sign "#{ARGV[1]}" | openssl enc -base64`