mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Integrated sparkle signing in release script.
This commit is contained in:
@@ -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`
|
ROOT=`pwd`
|
||||||
|
|
||||||
@@ -39,6 +44,7 @@ CLEAN='1'
|
|||||||
BUILD='1'
|
BUILD='1'
|
||||||
NOTQUICK='1'
|
NOTQUICK='1'
|
||||||
CREATEDMG='1'
|
CREATEDMG='1'
|
||||||
|
VERSION=$1
|
||||||
|
|
||||||
header "Adding Qt to app bundle"
|
header "Adding Qt to app bundle"
|
||||||
cd tomahawk.app
|
cd tomahawk.app
|
||||||
@@ -62,6 +68,10 @@ CREATEDMG='1'
|
|||||||
cd ..
|
cd ..
|
||||||
mv tomahawk.app Tomahawk.app
|
mv tomahawk.app Tomahawk.app
|
||||||
$ROOT/../admin/mac/create-dmg.sh 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
|
mv Tomahawk.app tomahawk.app
|
||||||
|
|
||||||
header "Done!"
|
header "Done!"
|
||||||
|
@@ -6,9 +6,9 @@ if ARGV.length < 2
|
|||||||
exit
|
exit
|
||||||
end
|
end
|
||||||
|
|
||||||
tarball = "tomahawk#{ARGV[0]}.tar.bz2"
|
tarball = "tomahawk-#{ARGV[0]}.tar.bz2"
|
||||||
puts "Zipping: #{tarball}..."
|
puts "Zipping: #{tarball}..."
|
||||||
`tar jcvf "#{tarball}" tomahawk.app`
|
`tar jcvf "#{tarball}" Tomahawk.app`
|
||||||
|
|
||||||
puts "Signing..."
|
puts "Signing..."
|
||||||
puts `openssl dgst -sha1 -binary < "#{tarball}" | openssl dgst -dss1 -sign "#{ARGV[1]}" | openssl enc -base64`
|
puts `openssl dgst -sha1 -binary < "#{tarball}" | openssl dgst -dss1 -sign "#{ARGV[1]}" | openssl enc -base64`
|
||||||
|
Reference in New Issue
Block a user