diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8044034e..4f98a545 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -45,6 +45,10 @@ jobs: find . \( -name '*.h' -or -name '*.cpp' -or -name '*.c' -or -name '*.mm' -or -name '*.m' \) -print0 | xargs -0 clang-format -style=file -i if [ "$(git diff $(Build.SourceVersion))" != "" ]; then exit 1; fi displayName: 'Check format' + - task: InstallAppleCertificate@2 + inputs: + certSecureFile: 'developerID_application.p12' + certPwd: $(P12Password) - script: | cd $(Build.SourcesDirectory) VERSION="$(cat common/yacreader_global.h | grep '#define VERSION "' | tr -d '#define VERSION' | tr -d '"' )" diff --git a/compileOSX.sh b/compileOSX.sh index 48cb760e..619b0d6a 100755 --- a/compileOSX.sh +++ b/compileOSX.sh @@ -61,4 +61,6 @@ 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" +codesign --force --deep --sign "Developer ID Application: LUIS ANGEL SAN MARTIN ROD (9B6KKVW3WM)" "./${dest}.dmg" + echo "Done!" diff --git a/releaseOSX.sh b/releaseOSX.sh index 8d5cdadf..a5d77a73 100755 --- a/releaseOSX.sh +++ b/releaseOSX.sh @@ -26,5 +26,7 @@ cp -R release/languages YACReader.app/Contents/MacOS/ cp -R release/languages YACReaderLibrary.app/Contents/MacOS/ cp -R release/languages YACReaderLibraryServer.app/Contents/MacOS/ +./signapps.sh + echo "Done." -#./signapps.sh + diff --git a/signapps.sh b/signapps.sh new file mode 100755 index 00000000..32685626 --- /dev/null +++ b/signapps.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +codesign --force --deep --sign "Developer ID Application: LUIS ANGEL SAN MARTIN ROD (9B6KKVW3WM)" ./YACReader.app +codesign --force --deep --sign "Developer ID Application: LUIS ANGEL SAN MARTIN ROD (9B6KKVW3WM)" ./YACReaderLibrary.app +codesign --force --deep --sign "Developer ID Application: LUIS ANGEL SAN MARTIN ROD (9B6KKVW3WM)" ./YACReaderLibraryServer.app