Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Joaquim Rocha <[email protected]>
  • Loading branch information
joaquimrocha committed Sep 2, 2024
1 parent 21103b6 commit 7ca868e
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/app-artifacts-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,24 +159,38 @@ jobs:
run: |
cd ./dmgs
MOUNT_OUTPUT="$(hdiutil attach ./app/dist/Headlamp*${{ matrix.arch }}*.dmg)"
# Map x86 to x64
ARCH=${{ matrix.arch }}
if [ "$ARCH" = "x86" ]; then
ARCH="x64"
fi
echo "Verifying notarization of the app: $(ls ./Headlamp*${ARCH}*.dmg)"
MOUNT_OUTPUT="$(hdiutil attach ./Headlamp*${ARCH}*.dmg)"
echo "MOUNT_OUTPUT: $MOUNT_OUTPUT"
VOLUME_NAME="$(echo "$MOUNT_OUTPUT" | grep -o '/Volumes/[^\s]*')"
# Check if the app is notarized
spctl -a -v "$VOLUME_NAME/Contents/MacOS/Headlamp"
echo "CHECK VOL: $VOLUME_NAME"
spctl -a -v "$VOLUME_NAME/Headlamp.app/Contents/MacOS/Headlamp"
echo "CHECK SYMLINKS"
# Check if the app has symlinks
SYMLINKS=$(find "$VOLUME_NAME" -type l -ls | grep node_modules)
echo "CHECK SYMLINKS: $SYMLINKS"
if [ -n "$SYMLINKS" ]; then
echo "Symlinks found in the DMG:"
echo "$SYMLINKS"
exit 1
else
echo "No symlinks found in the DMG"
fi
hdiutil detach "$VOLUME_NAME"
hdiutil detach "$VOLUME_NAME" || true
exit 0
stapler:
runs-on: macos-latest
needs: notarize
needs: verify-notarization
permissions:
actions: write # for downloading and uploading artifacts
contents: read
Expand Down

0 comments on commit 7ca868e

Please sign in to comment.