1
1
mirror of https://github.com/bitgapp/eqMac.git synced 2024-11-27 02:02:15 +03:00

improvements to the install process

This commit is contained in:
nodeful 2020-09-20 20:55:25 +03:00
parent 148ecf787c
commit 7cc4575bb4

View File

@ -13,15 +13,14 @@ if [ "$CURRENT_DRIVER_VERSION" != "$NEEDED_DRIVER_VERSION" ]; then
# Copy driver into Plug-Ins folder
cp -f -r "$DIR/eqMac.driver" /Library/Audio/Plug-Ins/HAL/ &>/dev/null
msg="It is recommended you restart your Mac for the eqMac Audio Driver to function properly."
if osascript <<EOT
tell application id "com.apple.systemuiserver"
display alert "Warning" \
message "$msg" \
display dialog \
"It is recommended you restart your Mac for the eqMac Audio Driver to function properly." \
buttons {"Skip restart", "Restart Mac"} \
default button "Restart Mac" \
cancel button "Skip restart" \
as warning
with icon POSIX file "/Applications/eqMac.app/Contents/Resources/AppIcon.icns"
end tell
EOT
then