Add support for skipping codesign in compileOSX.sh

This commit is contained in:
Luis Ángel San Martín 2019-09-18 22:20:30 +02:00
parent 8b923aeb18
commit 7618cbea73

View File

@ -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!"