Skip to content

Commit 1103385

Browse files
committed
fix: Set minimum macOS deployment target to 14.0 and add Gatekeeper fix script
1 parent ea388d2 commit 1103385

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

build_app_unified.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ else
219219
<key>CFBundleVersion</key>
220220
<string>$BUILD_NUMBER</string>
221221
<key>LSMinimumSystemVersion</key>
222-
<string>${MACOSX_DEPLOYMENT_TARGET:-14.0}</string>
222+
<string>14.0</string>
223223
<key>LSUIElement</key>
224224
<false/>
225225
<key>NSHighResolutionCapable</key>

scripts/fix-gatekeeper.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash
2+
3+
# Fix Gatekeeper issues for ClickIt.app
4+
# Use this script to resolve "damaged app" issues on Apple Silicon Macs
5+
6+
set -e
7+
8+
APP_PATH="${1:-dist/ClickIt.app}"
9+
10+
echo "🔧 Fixing Gatekeeper issues for $APP_PATH..."
11+
12+
if [ ! -d "$APP_PATH" ]; then
13+
echo "❌ App not found at $APP_PATH"
14+
echo "💡 Usage: $0 [path/to/ClickIt.app]"
15+
exit 1
16+
fi
17+
18+
echo "🔍 Removing quarantine attributes..."
19+
xattr -rd com.apple.quarantine "$APP_PATH" 2>/dev/null || echo " No quarantine attributes found"
20+
21+
echo "🔍 Removing extended attributes..."
22+
xattr -c "$APP_PATH" 2>/dev/null || echo " No extended attributes found"
23+
24+
echo "🔍 Checking Gatekeeper status..."
25+
if spctl --assess --type exec "$APP_PATH" 2>/dev/null; then
26+
echo "✅ App passes Gatekeeper assessment"
27+
else
28+
echo "⚠️ App rejected by Gatekeeper (expected with self-signed certificate)"
29+
echo "🔧 To run the app despite Gatekeeper:"
30+
echo " 1. Try to open the app normally"
31+
echo " 2. When blocked, go to System Settings > Privacy & Security"
32+
echo " 3. Click 'Open Anyway' next to the ClickIt warning"
33+
echo " OR"
34+
echo " 4. Disable Gatekeeper temporarily: sudo spctl --master-disable"
35+
echo " 5. Re-enable after testing: sudo spctl --master-enable"
36+
fi
37+
38+
echo "✅ Gatekeeper fixes applied successfully!"
39+
echo "📱 Try opening: open '$APP_PATH'"

0 commit comments

Comments
 (0)