# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1592955234 0 # Node ID 3784795a1e945b882a1c0b609e0e5601a52afba0 # Parent 34963d1e6f62ffc50a79883476ab27a142010282 Mac: Add support for AdHoc code signing in finishup script. diff -r 34963d1e6f62 -r 3784795a1e94 mac/finishup.sh --- 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