If CODE_SIGN_IDENTITY is set use it to sign the app bundle and the
[metze/wireshark/wip.git] / packaging / macosx / osx-app.sh
index a5a84eaecdb88a9dd81ca6b19ea0d745f8346cda..dc55bef916d63987333f9a37745603043a69ee78 100755 (executable)
@@ -579,4 +579,10 @@ else
 
 fi
 
+if [ -n "$CODE_SIGN_IDENTITY" ] ; then
+       echo -e "Signing $package"
+       codesign --sign "$CODE_SIGN_IDENTITY" --verbose "$package" || exit 1
+       codesign --verify --verbose "$package" || exit 1
+fi
+
 exit 0