-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-notarization.sh
More file actions
executable file
Β·38 lines (32 loc) Β· 1.28 KB
/
test-notarization.sh
File metadata and controls
executable file
Β·38 lines (32 loc) Β· 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# Test notarization credentials
echo "π Testing notarization credentials..."
# Check if required environment variables would be available
if [ -z "$NOTARIZATION_USERNAME" ]; then
echo "β NOTARIZATION_USERNAME not set"
echo " Set with: export NOTARIZATION_USERNAME='your-apple-id@example.com'"
exit 1
fi
if [ -z "$NOTARIZATION_PASSWORD" ]; then
echo "β NOTARIZATION_PASSWORD not set"
echo " Set with: export NOTARIZATION_PASSWORD='your-app-specific-password'"
exit 1
fi
echo "β
Environment variables configured"
echo " Username: $NOTARIZATION_USERNAME"
echo " Password: [REDACTED]"
# Test notarytool authentication
echo "π Testing notarytool authentication..."
if xcrun notarytool history --apple-id "$NOTARIZATION_USERNAME" --password "$NOTARIZATION_PASSWORD" --team-id "592A3U6J26" > /dev/null 2>&1; then
echo "β
Notarization credentials are valid"
echo "β
Team ID 592A3U6J26 is accessible"
else
echo "β Notarization authentication failed"
echo " Possible issues:"
echo " β’ Incorrect Apple ID"
echo " β’ Invalid app-specific password"
echo " β’ Team ID mismatch"
echo " β’ Apple ID not enrolled in Apple Developer Program"
exit 1
fi
echo "π Notarization test completed successfully!"