Don't quit Installer, Safari, System Events and System Preferences.

This commit is contained in:
Markus Reiter 2021-01-02 09:58:20 +01:00
parent baaf84edd0
commit 7e6c5cf62f
6 changed files with 8 additions and 16 deletions

View File

@ -21,9 +21,6 @@ cask "blackhole-16ch" do
must_succeed: true must_succeed: true
end end
uninstall quit: [ uninstall quit: "com.apple.audio.AudioMIDISetup",
"com.apple.audio.AudioMIDISetup",
"com.apple.systempreferences",
],
pkgutil: "audio.existential.BlackHole" pkgutil: "audio.existential.BlackHole"
end end

View File

@ -21,9 +21,6 @@ cask "blackhole-2ch" do
must_succeed: true must_succeed: true
end end
uninstall quit: [ uninstall quit: "com.apple.audio.AudioMIDISetup",
"com.apple.audio.AudioMIDISetup",
"com.apple.systempreferences",
],
pkgutil: "audio.existential.BlackHole" pkgutil: "audio.existential.BlackHole"
end end

View File

@ -18,8 +18,7 @@ cask "emclient" do
pkg "setup.pkg" pkg "setup.pkg"
uninstall quit: "application.com.apple.Safari.12886706636", uninstall pkgutil: "com.emclient.mail.client.pkg"
pkgutil: "com.emclient.mail.client.pkg"
zap trash: [ zap trash: [
"~/Library/Caches/com.emclient.mail.client", "~/Library/Caches/com.emclient.mail.client",

View File

@ -1,6 +1,6 @@
cask "odrive" do cask "odrive" do
version "6918" version "6931"
sha256 "9107f7634ac70cf017c889738b5bd8e3ac937bd991d5999119832d57407f0c22" sha256 "2014d431480e849eaf1f941e893d3214c30bd86a913b8c1e84dedc572637abaa"
url "https://d3huse1s6vwzq6.cloudfront.net/odrivesync.#{version}.pkg", url "https://d3huse1s6vwzq6.cloudfront.net/odrivesync.#{version}.pkg",
verified: "d3huse1s6vwzq6.cloudfront.net/" verified: "d3huse1s6vwzq6.cloudfront.net/"
@ -18,8 +18,6 @@ cask "odrive" do
uninstall quit: [ uninstall quit: [
"com.oxygencloud.odrive", "com.oxygencloud.odrive",
"application.com.apple.installer.1152921500312163482",
"application.com.apple.systemevents.1152921500312199658",
], ],
pkgutil: "com.oxygen.odrive.*" pkgutil: "com.oxygen.odrive.*"
end end

View File

@ -18,8 +18,6 @@ cask "snip" do
uninstall quit: [ uninstall quit: [
"com.tencent.snip", "com.tencent.snip",
"com.apple.systemevents",
"com.apple.systempreferences",
], ],
pkgutil: "com.tencent.snip.Snip.pkg" pkgutil: "com.tencent.snip.Snip.pkg"
end end

View File

@ -48,6 +48,9 @@ module Check
system_command!("/bin/launchctl", args: ["list"], print_stderr: false, sudo: sudo) system_command!("/bin/launchctl", args: ["list"], print_stderr: false, sudo: sudo)
.stdout .stdout
.lines.drop(1) .lines.drop(1)
.reject do |id|
id.match?(/\A(?:application\.)?com\.apple\.(installer|Safari|systemevents|systempreferences)(?:\.|$)/)
end
end end
[false, true] [false, true]