From 41c9e57802b4bca3fb3a0a0148d16d849c5057fa Mon Sep 17 00:00:00 2001 From: Scott Perry Date: Wed, 17 Jul 2013 23:18:38 -0700 Subject: [PATCH] Add signing build script needed for shipping --- .gitignore | 5 ----- Build/sign_update.rb | 7 +++++++ 2 files changed, 7 insertions(+), 5 deletions(-) create mode 100755 Build/sign_update.rb diff --git a/.gitignore b/.gitignore index c2de41c6..68e59a6c 100644 --- a/.gitignore +++ b/.gitignore @@ -40,11 +40,6 @@ profile DerivedData/ -# NB: slash on the end, so we only remove the FOLDER, not any files that were badly named "build" - -build/ - - ##### # Xcode private settings (window sizes, bookmarks, breakpoints, custom executables, smart groups) # diff --git a/Build/sign_update.rb b/Build/sign_update.rb new file mode 100755 index 00000000..6d03e2ef --- /dev/null +++ b/Build/sign_update.rb @@ -0,0 +1,7 @@ +#!/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` \ No newline at end of file