Only use --code-sign parameter on macOS if env variables are set

This commit is contained in:
David Wilson 2018-08-01 14:46:01 -07:00
parent e64bd40ff5
commit ff2409f10e

View File

@ -14,7 +14,11 @@ phases:
displayName: Install Node.js 8.9.3
- script: |
script/build --code-sign --compress-artifacts
if [ ! -z $ATOM_MAC_CODE_SIGNING_CERT_DOWNLOAD_URL ] && [ $ATOM_MAC_CODE_SIGNING_CERT_DOWNLOAD_URL != "null" ]; then
script/build --code-sign --compress-artifacts
else
script/build --compress-artifacts
fi
displayName: Build Atom
env:
ATOM_RELEASE_VERSION: $(ReleaseVersion)