mirror of
https://github.com/LCE-Hub/LCE-Emerald-Launcher.git
synced 2026-07-18 00:10:45 +00:00
revert to 40324828
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
#!/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.emerald.legacy"
|
||||
|
||||
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"
|
||||
@@ -1,17 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Post-install script for PKG installer
|
||||
# Automatically removes quarantine attributes from the installed app
|
||||
|
||||
APP_PATH="$2/Applications/Emerald Legacy Launcher.app"
|
||||
|
||||
echo "Removing quarantine attributes from Emerald Legacy Launcher..."
|
||||
|
||||
if [ -d "$APP_PATH" ]; then
|
||||
xattr -cr "$APP_PATH"
|
||||
echo "Quarantine attributes removed successfully."
|
||||
exit 0
|
||||
else
|
||||
echo "Warning: App not found at expected location: $APP_PATH"
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user