fix(actions): simplify macOS build workflow by directly executing quarantine attribute removal command
Some checks failed
Test macOS Build Action / test-macos-build (push) Failing after 32m10s

This commit is contained in:
Ozgur 2025-04-16 01:52:41 +02:00
parent 85dd25cbc0
commit f251e847f3
No known key found for this signature in database
GPG Key ID: 66CDF27505A35546

View File

@ -494,22 +494,10 @@ jobs:
run: |
debug_log "Removing quarantine attribute from app"
# Create helper script
QUARANTINE_SCRIPT="$WORK_DIR/remove_quarantine.sh"
cat > "$QUARANTINE_SCRIPT" << 'EOF'
#!/bin/bash
# Removes the quarantine attribute from app and all its contents
echo "Removing quarantine attribute from all files..."
find "$1" -exec xattr -d com.apple.quarantine {} \; 2>/dev/null || true
echo "Quarantine attributes removed"
EOF
chmod +x "$QUARANTINE_SCRIPT"
# Remove quarantine attribute
"$QUARANTINE_SCRIPT" "$APP_PATH"
debug_log "Quarantine attribute removal completed"
# Directly run the command without creating a script file
debug_log "Removing quarantine attribute from all files..."
find "$APP_PATH" -exec xattr -d com.apple.quarantine {} \; 2>/dev/null || true
debug_log "Quarantine attributes removed"
shell: bash
- name: Package signed app