1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-28 02:27:41 +00:00
transmission/macosx/appcast/sparkle_sign_update.rb

7 lines
220 B
Ruby
Raw Normal View History

#!/usr/bin/ruby
if ARGV.length < 2
puts "Usage: ruby sign_update.rb update_archive private_key"
exit
end
puts `openssl dgst -sha1 -binary < "#{ARGV[0]}" | openssl dgst -dss1 -sign "#{ARGV[1]}" | openssl enc -base64`