find VLC.app/Contents/MacOS/share/lua/*-name*luac -type f -exec codesign --force-s"$IDENTITY"$OPTIONS'{}'\;
find VLC.app/Contents/MacOS/share/lua/*-name*luac -type f -exec codesign --force-s"$IDENTITY"$OPTIONS'{}'\;
else
else
REQUIREMENT="=designated => anchor apple generic and identifier \"org.videolan.vlc\" and ((cert leaf[field.1.2.840.113635.100.6.1.9] exists) or ( certificate 1[field.1.2.840.113635.100.6.2.6] exists and certificate leaf[field.1.2.840.113635.100.6.1.13] exists and certificate leaf[subject.OU] = \"75GAHG3SZQ\" ))"
info "Signing the executable"
info "Signing the executable"
codesign --force--sign"$IDENTITY"$OPTIONS--requirements"=designated => anchor apple generic and identifier \"org.videolan.vlc\" and ((cert leaf[field.1.2.840.113635.100.6.1.9] exists) or ( certificate 1[field.1.2.840.113635.100.6.2.6] exists and certificate leaf[field.1.2.840.113635.100.6.1.13] exists and certificate leaf[subject.OU] = \"75GAHG3SZQ\" ))" VLC.app/Contents/MacOS/VLC
find VLC.app/Contents/MacOS/plugins/*-type f -exec codesign --force-s"$IDENTITY"$OPTIONS--requirements"=designated => anchor apple generic and identifier \"org.videolan.vlc\" and ((cert leaf[field.1.2.840.113635.100.6.1.9] exists) or ( certificate 1[field.1.2.840.113635.100.6.2.6] exists and certificate leaf[field.1.2.840.113635.100.6.1.13] exists and certificate leaf[subject.OU] = \"75GAHG3SZQ\" ))"'{}'\;
find VLC.app/Contents/MacOS/plugins/*-type f -exec codesign --force-s"$IDENTITY"$OPTIONS--requirements"$REQUIREMENT"'{}'\;
info "Signing the libraries"
info "Signing the libraries"
find VLC.app/Contents/MacOS/lib/*-type f -exec codesign --force-s"$IDENTITY"$OPTIONS--requirements"=designated => anchor apple generic and identifier \"org.videolan.vlc\" and ((cert leaf[field.1.2.840.113635.100.6.1.9] exists) or ( certificate 1[field.1.2.840.113635.100.6.2.6] exists and certificate leaf[field.1.2.840.113635.100.6.1.13] exists and certificate leaf[subject.OU] = \"75GAHG3SZQ\" ))"'{}'\;
find VLC.app/Contents/MacOS/lib/*-type f -exec codesign --force-s"$IDENTITY"$OPTIONS--requirements"$REQUIREMENT"'{}'\;
info "Signing the lua stuff"
info "Signing the lua stuff"
find VLC.app/Contents/MacOS/share/lua/*-name*luac -type f -exec codesign --force-s"$IDENTITY"$OPTIONS--requirements"=designated => anchor apple generic and identifier \"org.videolan.vlc\" and ((cert leaf[field.1.2.840.113635.100.6.1.9] exists) or ( certificate 1[field.1.2.840.113635.100.6.2.6] exists and certificate leaf[field.1.2.840.113635.100.6.1.13] exists and certificate leaf[subject.OU] = \"75GAHG3SZQ\" ))"'{}'\;
find VLC.app/Contents/MacOS/share/lua/*-name*luac -type f -exec codesign --force-s"$IDENTITY"$OPTIONS--requirements"$REQUIREMENT"'{}'\;