Files
Revelations-Launcher/scripts/fix-macos-quarantine.sh
itsRevela 1ac64d3baf Initial commit: Revelations Launcher v1.1.0
FOSS cross-platform launcher for Minecraft Legacy Console Edition.
2026-04-12 05:15:28 -05:00

33 lines
758 B
Bash
Executable File

#!/bin/bash
# Fix macOS quarantine issue for ARM builds fuck apple man
# This script removes quarantine attributes from the built app
set -e
APP_PATH="$1"
BUNDLE_ID="com.revelations.lce"
if [ -z "$APP_PATH" ]; then
echo "Usage: $0 <path-to-app-bundle>"
exit 1
fi
if [ ! -d "$APP_PATH" ]; then
echo "Error: App bundle not found at $APP_PATH"
exit 1
fi
echo "Fixing macOS quarantine for: $APP_PATH"
# Remove quarantine attributes
xattr -cr "$APP_PATH"
# Add basic code signing (ad-hoc signature)
codesign --force --deep --sign - "$APP_PATH" 2>/dev/null || {
echo "Warning: Code signing failed, but quarantine removal should work"
}
echo "✅ macOS quarantine fix completed"
echo "The app should now launch without 'damaged' error"