mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
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:
parent
7618cbea73
commit
9b994bbf1e
@ -82,7 +82,8 @@ jobs:
|
|||||||
- script: |
|
- script: |
|
||||||
cd $(Build.SourcesDirectory)
|
cd $(Build.SourcesDirectory)
|
||||||
VERSION="$(cat common/yacreader_global.h | grep '#define VERSION "' | tr -d '#define VERSION' | tr -d '"' )"
|
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'
|
displayName: 'Build'
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
inputs:
|
inputs:
|
||||||
|
Loading…
Reference in New Issue
Block a user