Clarify the different kinds of signing certificates (stackoverflow.com)
Change-Id: Ib0a7e74d394c3c5f7d2f3d7f5ba70bf6a714b604
This commit is contained in:
10
configure.ac
10
configure.ac
@@ -2720,9 +2720,13 @@ if test "$_os" = "Darwin"; then
|
|||||||
AC_MSG_CHECKING([whether to do code signing])
|
AC_MSG_CHECKING([whether to do code signing])
|
||||||
|
|
||||||
if test \( -z "$enable_macosx_code_signing" -o "$enable_macosx_code_signing" = yes \) -a $MACOSX_SDK_VERSION -ge 1070; then
|
if test \( -z "$enable_macosx_code_signing" -o "$enable_macosx_code_signing" = yes \) -a $MACOSX_SDK_VERSION -ge 1070; then
|
||||||
# By default use the first suitable certificate. Not sure if should be looking for the
|
# By default use the first suitable certificate (?).
|
||||||
# 'Developer ID Application:' ones instead. The code signing stuff could be much better
|
|
||||||
# documented...
|
# http://stackoverflow.com/questions/13196291/difference-between-mac-developer-and-3rd-party-mac-developer-application
|
||||||
|
# says that the "Mac Developer" certificate is useful just for self-testing. For distribution
|
||||||
|
# outside the Mac App Store, use the "Developer ID Application" one, and for distribution in
|
||||||
|
# the App Store, the "3rd Party Mac Developer" one.
|
||||||
|
|
||||||
identity=`security find-identity -p codesigning -v 2>/dev/null | grep 'Mac Developer:' | awk '{print $2}' |head -1`
|
identity=`security find-identity -p codesigning -v 2>/dev/null | grep 'Mac Developer:' | awk '{print $2}' |head -1`
|
||||||
if test -n "$identity"; then
|
if test -n "$identity"; then
|
||||||
MACOSX_CODESIGNING_IDENTITY=$identity
|
MACOSX_CODESIGNING_IDENTITY=$identity
|
||||||
|
Reference in New Issue
Block a user