diff options
author | Damian Minkov <damencho@jitsi.org> | 2014-12-15 13:06:14 +0200 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2014-12-15 13:06:14 +0200 |
commit | 5332d90853ca468e111e3366afb10d93895e5674 (patch) | |
tree | 27388341ca9c57d3c153262dc9de6d841a2b3442 /resources | |
parent | 7a4c7bf186cfcaf38bf490222fda147e4bd54674 (diff) | |
download | jitsi-5332d90853ca468e111e3366afb10d93895e5674.zip jitsi-5332d90853ca468e111e3366afb10d93895e5674.tar.gz jitsi-5332d90853ca468e111e3366afb10d93895e5674.tar.bz2 |
Updates signatures to satisfy new gatekeeper and to verify app. Removes wrong folders in growl framework archive, we create symlinks for them after extraction.
Diffstat (limited to 'resources')
-rw-r--r-- | resources/install/build.xml | 54 | ||||
-rw-r--r-- | resources/install/macosx/GrowlFramework.zip | bin | 248342 -> 236005 bytes |
2 files changed, 49 insertions, 5 deletions
diff --git a/resources/install/build.xml b/resources/install/build.xml index 95446a1..0dd938f 100644 --- a/resources/install/build.xml +++ b/resources/install/build.xml @@ -1243,11 +1243,11 @@ <symlink link="${macosx.app.dir}/${application.name}.app/Contents/Frameworks/GrowlFramework/Growl.framework/Versions/Current" resource="./A"/> <symlink link="${macosx.app.dir}/${application.name}.app/Contents/Frameworks/GrowlFramework/Growl.framework/Headers" - resource="../Versions/Current/Headers"/> + resource="./Versions/Current/Headers"/> <symlink link="${macosx.app.dir}/${application.name}.app/Contents/Frameworks/GrowlFramework/Growl.framework/Resources" - resource="../Versions/Current/Resources"/> + resource="./Versions/Current/Resources"/> <symlink link="${macosx.app.dir}/${application.name}.app/Contents/Frameworks/GrowlFramework/Growl.framework/Growl" - resource="../Versions/Current/Growl"/> + resource="./Versions/Current/Growl"/> <!-- Add the url types in the Info.plist file --> <replace file="${macosx.app.dir}/${application.name}.app/Contents/Info.plist"> @@ -1555,11 +1555,24 @@ quiet="yes" failonerror="false"/> </target> + <!-- Signs the specified path in param path-to-sign, using force --> + <target name="-codesign-path"> + <exec executable="/usr/bin/codesign" os="Mac OS X" failonerror="true"> + <arg value="--force"/> + <arg value="-s"/> + <arg value="${macosx.sign.certid}"/> + <arg value="--keychain"/> + <arg value="${macosx.sign.keychain}"/> + <arg value="${path-to-sign}"/> + </exec> + </target> + <!-- If there is a property enabling the keychain name we can sign. --> - <target name="macosx-sign-app" if="macosx.sign.keychain"> + <target name="macosx-sign-app" if="macosx.sign.keychain" + depends="define-ant-contrib-task"> <echo message="Signing application!"/> <!-- unlocking the keychain --> @@ -1570,6 +1583,31 @@ <arg value="${macosx.sign.keychain}"/> </exec> + <!-- force codesigning of growl framework as it has reosource 1 + signiture and will cause Jitsi.app to fail verifying + Also sign the other frameworks and plugins (jre if exists). + --> + <delete dir="${macosx.app.dir}/${application.name}.app/Contents/Frameworks/GrowlFramework/Growl.framework/Versions/A/_CodeSignature" + quiet="yes" failonerror="false"/> + <antcall target="-codesign-path"> + <param name="path-to-sign" + value="${macosx.app.dir}/${application.name}.app/Contents/Frameworks/GrowlFramework/Growl.framework/Versions/A"/> + </antcall> + <antcall target="-codesign-path"> + <param name="path-to-sign" + value="${macosx.app.dir}/${application.name}.app/Contents/Frameworks/Sparkle.framework/Versions/A"/> + </antcall> + + <foreach param="path-to-sign" target="-codesign-path" + inheritall="true" inheritrefs="true"> + <path> + <dirset + dir="${macosx.app.dir}/${application.name}.app/Contents"> + <include name="PlugIns/*"/> + </dirset> + </path> + </foreach> + <!-- signing --> <exec executable="/usr/bin/codesign" os="Mac OS X" failonerror="true"> <arg value="--deep"/> @@ -1587,10 +1625,16 @@ <!-- just print sign info To test is sign accepted do $ sudo spctl -a -v --> - <exec executable="/usr/bin/codesign" os="Mac OS X" failonerror="true"> + <exec executable="/usr/bin/codesign" os="Mac OS X" failonerror="false"> <arg value="-dvvv"/> <arg value="${macosx.app.dir}/${application.name}.app"/> </exec> + <exec executable="/usr/bin/codesign" os="Mac OS X" failonerror="false"> + <arg value="--verify"/> + <arg value="--deep"/> + <arg value="-v"/> + <arg value="${macosx.app.dir}/${application.name}.app"/> + </exec> <!-- locking again --> <exec executable="/usr/bin/security" os="Mac OS X" failonerror="true"> diff --git a/resources/install/macosx/GrowlFramework.zip b/resources/install/macosx/GrowlFramework.zip Binary files differindex 2cd8c49..82c39ae 100644 --- a/resources/install/macosx/GrowlFramework.zip +++ b/resources/install/macosx/GrowlFramework.zip |