macOS: Update install script with quarantine permissions (#8915) resolves #5589

This commit is contained in:
thebluepotato 2020-06-09 21:30:14 +02:00 committed by GitHub
parent 39740d1f4c
commit 30d55aea3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
#!/bin/zsh
#Setting up colors
# Setting up colors
BOLDRED="$(printf '\033[1;31m')"
BOLDGREEN="$(printf '\033[1;32m')"
NC="$(printf '\033[0m')" # No Color
@ -54,6 +54,13 @@ cat >~/Library/LaunchAgents/org.user.Jackett.plist <<EOL
EOL
# Un-quarantine all dylib and DLL files
echo "Removing Jackett executable and all .dylib and .dll files from quarantine..."
qstr="$(xattr -p com.apple.quarantine jackett)"
qstr="00c1${qstr:4}"
xattr -w com.apple.quarantine $qstr jackett
xattr -w com.apple.quarantine $qstr *.{dylib,dll}
# Run the agent
launchctl load ~/Library/LaunchAgents/org.user.Jackett.plist