If PRs come from a fork do not codesign macos apps

It fails in Azure Pipelines due to security reasons
This commit is contained in:
Luis Ángel San Martín 2019-09-18 22:21:05 +02:00
parent 7618cbea73
commit 9b994bbf1e

View File

@ -82,7 +82,8 @@ jobs:
- script: |
cd $(Build.SourcesDirectory)
VERSION="$(cat common/yacreader_global.h | grep '#define VERSION "' | tr -d '#define VERSION' | tr -d '"' )"
./compileOSX.sh $VERSION $(Build.BuildNumber)
SKIP_CODESIGN=$(System.PullRequest.IsFork)
./compileOSX.sh $VERSION $(Build.BuildNumber) $SKIP_CODESIGN
displayName: 'Build'
- task: CopyFiles@2
inputs: