quakespasm/MacOSX/sign_update.rb
Kristian Duske c9f8863a5d Disabled automatic updates through Sparkle for now due to signing problems.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@325 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-09-18 09:01:16 +00:00

7 lines
No EOL
220 B
Ruby
Executable file

#!/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`