mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-14 17:10:53 +00:00
7 lines
220 B
Ruby
7 lines
220 B
Ruby
|
#!/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`
|