diff --git a/.github/workflows/macos-build-arm64.yml b/.github/workflows/macos-build-arm64.yml index 5f74e50b..1d8421a4 100644 --- a/.github/workflows/macos-build-arm64.yml +++ b/.github/workflows/macos-build-arm64.yml @@ -251,7 +251,7 @@ jobs: # Create README cat > installer_temp/README.txt << 'EOF' - Huntarr macOS Apple Silicon (ARM64) Distribution + Huntarr macOS ARM64 (Apple Silicon) Distribution =============================================== Installation Options: @@ -268,18 +268,24 @@ jobs: If you see "Huntarr is damaged and can't be opened": - Option 1 - Remove Quarantine (Recommended): + Option 1 - Use the Fix Script (Easiest): + 1. Open Terminal + 2. Navigate to this folder: cd /path/to/extracted/huntarr + 3. Run: ./fix-quarantine.sh + 4. Try opening Huntarr again + + Option 2 - Manual Terminal Commands: 1. Open Terminal 2. Run: xattr -cr /Applications/Huntarr.app 3. Run: sudo xattr -rd com.apple.quarantine /Applications/Huntarr.app 4. Try opening Huntarr again - Option 2 - System Preferences: + Option 3 - System Preferences: 1. Go to System Preferences > Security & Privacy > General 2. Click "Open Anyway" next to the Huntarr warning 3. Confirm you want to open it - Option 3 - Right-click Method: + Option 4 - Right-click Method: 1. Right-click on Huntarr.app 2. Select "Open" from the context menu 3. Click "Open" in the security dialog @@ -293,15 +299,67 @@ jobs: - Config files are stored in: ~/Library/Application Support/Huntarr/ - Web interface: http://localhost:9705 - Compatibility: - - This version is optimized for Apple Silicon Macs (M1, M2, M3, etc.) - - For Intel Macs, use the intel version instead - Support: - GitHub: https://github.com/plexguide/Huntarr.io - Documentation: https://plexguide.github.io/Huntarr.io/ EOF + # Create quarantine fix script + cat > installer_temp/fix-quarantine.sh << 'EOF' + #!/bin/bash + echo "Huntarr macOS Quarantine Fix Script" + echo "====================================" + echo "" + + # Check if Huntarr.app exists in current directory + if [ ! -d "Huntarr.app" ]; then + echo "โŒ Huntarr.app not found in current directory" + echo "Please navigate to the folder containing Huntarr.app and run this script again" + exit 1 + fi + + echo "๐Ÿ” Found Huntarr.app in current directory" + echo "" + + # Remove quarantine from current location + echo "๐Ÿงน Removing quarantine attributes from Huntarr.app..." + xattr -cr Huntarr.app + if [ $? -eq 0 ]; then + echo "โœ… Quarantine attributes removed from current location" + else + echo "โš ๏ธ Warning: Could not remove quarantine attributes (this might be okay)" + fi + + # Check if it's installed in Applications + if [ -d "/Applications/Huntarr.app" ]; then + echo "" + echo "๐Ÿ” Found Huntarr.app in Applications folder" + echo "๐Ÿงน Removing quarantine attributes from Applications..." + xattr -cr /Applications/Huntarr.app + sudo xattr -rd com.apple.quarantine /Applications/Huntarr.app 2>/dev/null + if [ $? -eq 0 ]; then + echo "โœ… Quarantine attributes removed from Applications" + else + echo "โš ๏ธ Warning: Could not remove quarantine attributes from Applications" + echo " You may need to run: sudo xattr -rd com.apple.quarantine /Applications/Huntarr.app" + fi + else + echo "" + echo "โ„น๏ธ Huntarr.app not found in Applications folder" + echo " If you plan to install it there, run this script again after installation" + fi + + echo "" + echo "๐ŸŽ‰ Quarantine fix completed!" + echo "" + echo "You should now be able to open Huntarr without the 'damaged' warning." + echo "If you still see the warning, try:" + echo "1. Right-click on Huntarr.app and select 'Open'" + echo "2. Click 'Open' in the security dialog" + EOF + + chmod +x installer_temp/fix-quarantine.sh + # Create archive version="${{ steps.meta.outputs.VERSION }}" diff --git a/.github/workflows/macos-build-intel.yml b/.github/workflows/macos-build-intel.yml index ce1875f2..9a180727 100644 --- a/.github/workflows/macos-build-intel.yml +++ b/.github/workflows/macos-build-intel.yml @@ -268,18 +268,24 @@ jobs: If you see "Huntarr is damaged and can't be opened": - Option 1 - Remove Quarantine (Recommended): + Option 1 - Use the Fix Script (Easiest): + 1. Open Terminal + 2. Navigate to this folder: cd /path/to/extracted/huntarr + 3. Run: ./fix-quarantine.sh + 4. Try opening Huntarr again + + Option 2 - Manual Terminal Commands: 1. Open Terminal 2. Run: xattr -cr /Applications/Huntarr.app 3. Run: sudo xattr -rd com.apple.quarantine /Applications/Huntarr.app 4. Try opening Huntarr again - Option 2 - System Preferences: + Option 3 - System Preferences: 1. Go to System Preferences > Security & Privacy > General 2. Click "Open Anyway" next to the Huntarr warning 3. Confirm you want to open it - Option 3 - Right-click Method: + Option 4 - Right-click Method: 1. Right-click on Huntarr.app 2. Select "Open" from the context menu 3. Click "Open" in the security dialog @@ -298,6 +304,63 @@ jobs: - Documentation: https://plexguide.github.io/Huntarr.io/ EOF + # Create quarantine fix script + cat > installer_temp/fix-quarantine.sh << 'EOF' + #!/bin/bash + echo "Huntarr macOS Quarantine Fix Script" + echo "====================================" + echo "" + + # Check if Huntarr.app exists in current directory + if [ ! -d "Huntarr.app" ]; then + echo "โŒ Huntarr.app not found in current directory" + echo "Please navigate to the folder containing Huntarr.app and run this script again" + exit 1 + fi + + echo "๐Ÿ” Found Huntarr.app in current directory" + echo "" + + # Remove quarantine from current location + echo "๐Ÿงน Removing quarantine attributes from Huntarr.app..." + xattr -cr Huntarr.app + if [ $? -eq 0 ]; then + echo "โœ… Quarantine attributes removed from current location" + else + echo "โš ๏ธ Warning: Could not remove quarantine attributes (this might be okay)" + fi + + # Check if it's installed in Applications + if [ -d "/Applications/Huntarr.app" ]; then + echo "" + echo "๐Ÿ” Found Huntarr.app in Applications folder" + echo "๐Ÿงน Removing quarantine attributes from Applications..." + xattr -cr /Applications/Huntarr.app + sudo xattr -rd com.apple.quarantine /Applications/Huntarr.app 2>/dev/null + if [ $? -eq 0 ]; then + echo "โœ… Quarantine attributes removed from Applications" + else + echo "โš ๏ธ Warning: Could not remove quarantine attributes from Applications" + echo " You may need to run: sudo xattr -rd com.apple.quarantine /Applications/Huntarr.app" + fi + else + echo "" + echo "โ„น๏ธ Huntarr.app not found in Applications folder" + echo " If you plan to install it there, run this script again after installation" + fi + + echo "" + echo "๐ŸŽ‰ Quarantine fix completed!" + echo "" + echo "You should now be able to open Huntarr without the 'damaged' warning." + echo "If you still see the warning, try:" + echo "1. Right-click on Huntarr.app and select 'Open'" + echo "2. Click 'Open' in the security dialog" + echo "" + EOF + + chmod +x installer_temp/fix-quarantine.sh + # Create archive version="${{ steps.meta.outputs.VERSION }}"