From c1db858effcea82239a5546d346c6c667d85454c Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Tue, 8 Mar 2011 22:16:15 -0500 Subject: [PATCH] Add modified signing script to tar up the .app and generate the sparkle signature. --- admin/mac/sign_bundle.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 admin/mac/sign_bundle.rb diff --git a/admin/mac/sign_bundle.rb b/admin/mac/sign_bundle.rb new file mode 100755 index 000000000..7ffd00062 --- /dev/null +++ b/admin/mac/sign_bundle.rb @@ -0,0 +1,14 @@ +#!/usr/bin/ruby +if ARGV.length < 2 + puts "Usage: ruby sign_update.rb version private_key_file" + puts "\nCall this from the build directory." + puts "If you don't have the tomahawk private key and you think you should, ask leo :)" + exit +end + +tarball = "tomahawk#{ARGV[0]}.tar.bz2" +puts "Zipping: #{tarball}..." +`tar jcvf "#{tarball}" tomahawk.app` + +puts "Signing..." +puts `openssl dgst -sha1 -binary < "#{tarball}" | openssl dgst -dss1 -sign "#{ARGV[1]}" | openssl enc -base64`