quakespasm/MacOSX/sign_update.rb
Kristian Duske 15f1710bc6 Changed signing scripts to use stock openssl over the macports version. Signing and automatic updates now work on OS X.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@335 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-09-20 06:24:15 +00:00

7 lines
248 B
Ruby
Executable file

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