mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-08 17:42:31 +02:00
improve instalation for macOS
This commit is contained in:
@@ -26,6 +26,7 @@ echo "- Detecting OS"
|
||||
if [ "${OSTYPE:0:6}" == "darwin" ]; then
|
||||
osVariant="osx"
|
||||
macOS_version="$(sw_vers -productVersion)"
|
||||
appDir="/Applications/UVtools.app"
|
||||
|
||||
if [ $(version $macOS_version) -lt $(version $macOS_least_version) ]; then
|
||||
echo "Error: Unable to install, UVtools requires at least macOS $macOS_least_version."
|
||||
@@ -42,6 +43,12 @@ if [ "${OSTYPE:0:6}" == "darwin" ]; then
|
||||
fi
|
||||
|
||||
brew install --cask uvtools
|
||||
|
||||
if [ -d "$appDir" ]; then
|
||||
find "$appDir" -print0 | xargs -0 xattr -d com.apple.quarantine
|
||||
open "$appDir" &
|
||||
fi
|
||||
|
||||
exit 1
|
||||
elif command -v apt-get &> /dev/null
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user