From 5f35c74c4a5de4f00b1169b7ddd00b2e352f8346 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 25 Aug 2020 04:25:24 +0000 Subject: [PATCH] remove xattr com.apple.quarantine before trying spctl --- _webi/template.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/_webi/template.sh b/_webi/template.sh index 651ae99..274bfa1 100644 --- a/_webi/template.sh +++ b/_webi/template.sh @@ -239,6 +239,12 @@ webi_post_install() { } _webi_enable_exec() { + if [ -n "$(command -v spctl)" ] && [ -n "$(command -v xattr)" ] ; then + xattr -r -d com.apple.quarantine "$pkg_src" + return 0 + fi + # TODO need to test that the above actually worked + # (and proceed to this below if it did not) if [ -n "$(command -v spctl)" ]; then echo "Checking permission to execute '$pkg_cmd_name' on macOS 11+" set +e -- 2.25.1