Код:
mkdir /tmp/patch
cd /tmp/patch
sudo mv /Library/OFX/Plugins/DehancerPhotoMetal_arm64_x86_64_v6.ofx.bundle/components.xml /Library/OFX/Plugins/DehancerPhotoMetal_arm64_x86_64_v6.ofx.bundle/InstallationLog.txt /Library/OFX/Plugins/DehancerPhotoMetal_arm64_x86_64_v6.ofx.bundle/Licenses /Library/OFX/Plugins/DehancerPhotoMetal_arm64_x86_64_v6.ofx.bundle/maintenancetool.app /Library/OFX/Plugins/DehancerPhotoMetal_arm64_x86_64_v6.ofx.bundle/maintenancetool.dat /Library/OFX/Plugins/DehancerPhotoMetal_arm64_x86_64_v6.ofx.bundle/maintenancetool.ini /Library/OFX/Plugins/DehancerPhotoMetal_arm64_x86_64_v6.ofx.bundle/network.xml /Library/OFX/Plugins/DehancerPhotoMetal_arm64_x86_64_v6.ofx.bundle/scripts /tmp/patch
sudo perl -pi -e 's/\x55\x48\x89\xe5\x41\x57\x41\x56\x53\x48\x83\xec\x18\x49\x89\xfe\xc7/\xc3\x48\x89\xe5\x41\x57\x41\x56\x53\x48\x83\xec\x18\x49\x89\xfe\xc7/g;s/\xfd\x7b\x42\xa9\xff\xc3\x00\x91\xc0\x03\x5f\xd6\xff\x03\x03\xd1\xfd\x7b\x0b\xa9\xfd\xc3\x02\x91\xa0\x83\x1f\xf8\xa8\x83\x5f\xf8/\xfd\x7b\x42\xa9\xff\xc3\x00\x91\xc0\x03\x5f\xd6\xc0\x03\x5f\xd6\xfd\x7b\x0b\xa9\xfd\xc3\x02\x91\xa0\x83\x1f\xf8\xa8\x83\x5f\xf8/g' "/Library/OFX/Plugins/DehancerPhotoMetal_arm64_x86_64_v6.ofx.bundle/Contents/MacOS/DehancerPhotoMetal_arm64_x86_64_v6.ofx"
sudo codesign -f -s - /Library/OFX/Plugins/DehancerPhotoMetal_arm64_x86_64_v6.ofx.bundle
sudo codesign -f -s - maintenancetool.app
sudo mv /tmp/patch/* /Library/OFX/Plugins/DehancerPhotoMetal_arm64_x86_64_v6.ofx.bundle