changeset 2120:3784795a1e94

Mac: Add support for AdHoc code signing in finishup script.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 23 Jun 2020 23:33:54 +0000
parents 34963d1e6f62
children 7ce8ecb79d4b
files mac/finishup.sh
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mac/finishup.sh	Tue Jun 23 22:48:46 2020 +0000
+++ b/mac/finishup.sh	Tue Jun 23 23:33:54 2020 +0000
@@ -13,12 +13,13 @@
     if [ ! -f mac/key.crt ]; then
        if [ -f mac/key.rsa ]; then
           # If not we generate a self-signed one for testing purposes
-          echo "No certifiacte in mac/key.crt so generating self-signed certificate..."
+          echo "No certificate in mac/key.crt so generating self-signed certificate..."
           openssl req -new -key mac/key.rsa -out mac/key.csr -config mac/openssl.cnf
           openssl x509 -req -days 3650 -in mac/key.csr -signkey mac/key.rsa -out mac/key.crt -extfile mac/openssl.cnf -extensions codesign
           certtool i mac/key.crt k="`pwd`/mac/key.keychain" r=mac/key.rsa c p=moof
        else
-           echo "No key pair found, cannot generate certificate... code will be unsigned."
+           echo "No key pair found, cannot generate certificate... signing AdHoc."
+           codesign -s "-" dwtest.app/Contents/MacOS/dwtest
        fi
     fi
     if [ -f mac/key.keychain ]; then