From 7618cbea73149f0079bb596974b0b0d63de87f3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Wed, 18 Sep 2019 22:20:30 +0200 Subject: [PATCH] Add support for skipping codesign in compileOSX.sh --- compileOSX.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/compileOSX.sh b/compileOSX.sh index d04c0d49..dd589da5 100755 --- a/compileOSX.sh +++ b/compileOSX.sh @@ -5,7 +5,9 @@ VERSION=${1:-"9.5.0"} BUILD_NUMBER=${2:-"0"} -if [ "$3" == "clean" ]; then +SKIP_CODESIGN=${3:-false} + +if [ "$4" == "clean" ]; then ./cleanOSX.sh fi @@ -60,7 +62,9 @@ cp -R release/languages YACReader.app/Contents/MacOS/ cp -R release/languages YACReaderLibrary.app/Contents/MacOS/ cp -R release/languages YACReaderLibraryServer.app/Contents/MacOS/ +if [ "$SKIP_CODESIGN" = false ]; then ./signapps.sh +fi echo "Preparing apps for release, Done." @@ -88,6 +92,8 @@ sed -i'' -e "s/#VERSION#/$VERSION/g" dmg.json sed -i'' -e "s/#BUILD_NUMBER#/$BUILD_NUMBER/g" dmg.json appdmg dmg.json "$dest.dmg" +if [ "$SKIP_CODESIGN" = false ]; then codesign --force --deep --sign "Developer ID Application: LUIS ANGEL SAN MARTIN ROD (9B6KKVW3WM)" "./${dest}.dmg" +fi echo "Done!"