1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-01-03 13:46:10 +00:00

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

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/zsh
# Setting up colors
BOLDRED="$(printf '\033[1;31m')"
@ -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