Modify update script to just fucking sign the file repeatedly until it validates

CQTexperiment
Chris Moeller 2014-03-16 21:51:08 -07:00
parent 65d1a32ad5
commit 1c68ad1c8d
2 changed files with 11 additions and 1 deletions

10
Scripts/fucking_sign_it.sh Executable file
View File

@ -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

View File

@ -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]