diff --git a/.gitea/workflows/test-macos-build.yml b/.gitea/workflows/test-macos-build.yml index b5ac05b6..6380acd3 100644 --- a/.gitea/workflows/test-macos-build.yml +++ b/.gitea/workflows/test-macos-build.yml @@ -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