Skip to content

Commit

Permalink
List attributes of .zip and .app
Browse files Browse the repository at this point in the history
  • Loading branch information
kraenhansen committed Sep 26, 2024
1 parent 3f91804 commit 31946f1
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .evergreen/functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,14 @@ functions:
# Check the app bundle size.
npm run --workspace mongodb-compass check-bundled-app-size
COMPASS_ARCHIVE_PATH="packages/compass/dist/${app_archive_name}"
if [[ "$IS_OSX" == "true" ]]; then
echo "Printing information related to quarantine"
xattr -l $COMPASS_ARCHIVE_PATH
mdls $COMPASS_ARCHIVE_PATH
fi
if [[ "$IS_WINDOWS" == "true" ]]; then
COMPASS_OUTDIR="$COMPASS_APP_PATH_ORIGINAL"
else
Expand All @@ -563,15 +571,21 @@ functions:
echo "Unpacking ${app_archive_name} to $COMPASS_OUTDIR ..."
# Unpack the app archive
if [[ "${app_archive_name}" == *.zip ]]; then
unzip "packages/compass/dist/${app_archive_name}" -d "$COMPASS_OUTDIR"
if [[ $COMPASS_ARCHIVE_PATH == *.zip ]]; then
unzip $COMPASS_ARCHIVE_PATH -d "$COMPASS_OUTDIR"
else
tar -xzf "packages/compass/dist/${app_archive_name}" -C "$COMPASS_OUTDIR"
tar -xzf $COMPASS_ARCHIVE_PATH -C "$COMPASS_OUTDIR"
fi
# Print folder content to confirm that it worked
ls -la "$COMPASS_OUTDIR"
if [[ "$IS_OSX" == "true" ]]; then
echo "Printing information related to quarantine of the app"
xattr -l "$COMPASS_OUTDIR/MongoDB Compass Dev.app"
mdls "$COMPASS_OUTDIR/MongoDB Compass Dev.app"
fi
if [[ "$IS_WINDOWS" == "true" ]]; then
chmod +x "$COMPASS_OUTDIR"/*.exe
fi
Expand Down

0 comments on commit 31946f1

Please sign in to comment.