Anki/qt/launcher/mac/notarize.sh
2025-06-16 19:20:12 +07:00

17 lines
No EOL
358 B
Bash
Executable file

#!/bin/bash
set -e
# Define output path
OUTPUT_DIR="$1"
APP_LAUNCHER="$OUTPUT_DIR/Anki.app"
ZIP_FILE="$OUTPUT_DIR/Anki.zip"
# Create zip for notarization
(cd "$OUTPUT_DIR" && rm -rf Anki.zip && zip -r Anki.zip Anki.app)
# Upload for notarization
xcrun notarytool submit "$ZIP_FILE" -p default --wait
# Staple the app
xcrun stapler staple "$APP_LAUNCHER"