From 1c68ad1c8de10afabafda5d79d130f36aad9adaa Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Sun, 16 Mar 2014 21:51:08 -0700 Subject: [PATCH] Modify update script to just fucking sign the file repeatedly until it validates --- Scripts/fucking_sign_it.sh | 10 ++++++++++ Scripts/update_feed.rb | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 Scripts/fucking_sign_it.sh diff --git a/Scripts/fucking_sign_it.sh b/Scripts/fucking_sign_it.sh new file mode 100755 index 000000000..722ace044 --- /dev/null +++ b/Scripts/fucking_sign_it.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +FUCKING_THING_TO_SIGN=$1 + +FUCKING_SIGNED=0 + +while [ $FUCKING_SIGNED -eq 0 ]; do + codesign -s 'Developer ID Application' --deep --force "$FUCKING_THING_TO_SIGN" + spctl -a "$FUCKING_THING_TO_SIGN" && FUCKING_SIGNED=1 +done diff --git a/Scripts/update_feed.rb b/Scripts/update_feed.rb index 13a4c60db..b6f485fa5 100755 --- a/Scripts/update_feed.rb +++ b/Scripts/update_feed.rb @@ -66,7 +66,7 @@ end filename = "Cog-#{revision_code}.zip" #Sign it! - %x[codesign -s 'Developer ID Application' --deep --force '#{app_path}/Cog.app'] + %x[#{File.expand_path("../fucking_sign_it.sh", __FILE__)} '#{app_path}/Cog.app'] #Zip the app! %x[rm -f /tmp/#{feed}.zip]