Skip to content

Commit

Permalink
ci/macos: fix a typo
Browse files Browse the repository at this point in the history
 - true -> True
 - add workflow failure if one cp command exits with a non-zero status

Signed-off-by: Bindea Cristian <[email protected]>
  • Loading branch information
bindea-cristian committed Feb 14, 2025
1 parent a3a7c43 commit 91a3a3a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,21 @@ stages:
displayName: 'Copy Staging Dir'
workingDirectory: $(Build.Repository.LocalPath)
- script: |
set -e
echo "TF_BUILD = ${TF_BUILD}"
echo "ACCOUNT_NAME = " ${ACCOUNT_NAME}
echo "PROJECT_NAME = " ${PROJECT_NAME}
MACOS_VERSION=$(/usr/libexec/PlistBuddy -c "Print:ProductVersion" /System/Library/CoreServices/SystemVersion.plist)
DEPLOY_FILE=Scopy-macos${MACOS_VERSION}-${CURRENT_COMMIT:0:7}.dmg
cp build/ScopyApp.zip ${BUILD_ARTIFACTSTAGINGDIRECTORY}
cp build/Scopy.dmg ${BUILD_ARTIFACTSTAGINGDIRECTORY}/${DEPLOY_FILE}
cd ${BUILD_ARTIFACTSTAGINGDIRECTORY}
tar czvf Scopy-macos${MACOS_VERSION}.tar.gz ${DEPLOY_FILE}
ls -la
if [ -e build/Scopy.dmg ]; then
cp build/Scopy.dmg ${BUILD_ARTIFACTSTAGINGDIRECTORY}/${DEPLOY_FILE}
cd ${BUILD_ARTIFACTSTAGINGDIRECTORY}
tar czvf Scopy-macos${MACOS_VERSION}.tar.gz ${DEPLOY_FILE}
else
echo "Scopy.dmg does not exists"
fi
ls -la ${BUILD_ARTIFACTSTAGINGDIRECTORY}
displayName: 'Rename and copy artifact'
workingDirectory: $(Build.Repository.LocalPath)
- task: GithubRelease@1
Expand Down
2 changes: 1 addition & 1 deletion ci/macOS/package_darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ echo $STAGING_AREA_DEPS/lib | dylibbundler -ns -of -b \
echo "=== Bundle the Qt libraries & Create Scopy.dmg"
macdeployqt Scopy.app -verbose=3

if [ "$TF_BUILD" == "true" ];then
if [ "$TF_BUILD" == "True" ];then
zip -Xvr ScopyApp.zip Scopy.app
macdeployqt Scopy.app -dmg -verbose=3
fi
Expand Down

0 comments on commit 91a3a3a

Please sign in to comment.