#!/bin/bash # Note: This script requires xcode command-line tools to be installed # Reset signing install_name_tool -change 'a' 'a' addons/webview/libgdwebview.macos.arm64.dylib install_name_tool -change 'a' 'a' addons/webview/libvitosha.dylib install_name_tool -change 'a' 'a' addons/webview/libvitosha_metal.dylib # Set the base directory containing the .framework bundles BASE_DIR="$(pwd)/addons/webview/macos_arm64-runtime/lib" # Find all .framework bundles within the base directory and its subdirectories find "$BASE_DIR" -name "*.framework" -print0 | while IFS= read -r -d $'\0' FRAMEWORK_DIR; do echo "Processing framework: $FRAMEWORK_DIR" # Remove the quarantine attribute recursively sudo xattr -dr com.apple.quarantine "$FRAMEWORK_DIR" done echo "Finished processing frameworks."