From 590ce9fc3727b67c7ed71e0e27b006d5e8cd9f4f Mon Sep 17 00:00:00 2001 From: David Zmick Date: Tue, 18 Oct 2022 21:10:17 -0500 Subject: [PATCH] update osx bundler to account for macOS code signing --- osx_vst_bundler.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/osx_vst_bundler.sh b/osx_vst_bundler.sh index b28d7da4..fdefe2ce 100755 --- a/osx_vst_bundler.sh +++ b/osx_vst_bundler.sh @@ -54,8 +54,18 @@ else " > "$1.vst/Contents/Info.plist" - # move the provided library to the correct location - cp "$2" "$1.vst/Contents/MacOS/$1" + # Move the provided library to the correct location by removing the original + # file and copying the new one in place. + # + # We must remove the original file because modern macOS code signatures are + # cached by inode; copying over the file will not change the inode and the + # signature of the new dylib will no longer match the cached signature. + # + # See https://developer.apple.com/documentation/security/updating_mac_software + + tgt="$1.vst/Contents/MacOS/$1" + rm -f "$1" + cp "$2" "$1" echo "Created bundle $1.vst" fi