diff --git a/Casks/a/acronis-true-image.rb b/Casks/a/acronis-true-image.rb index 9681e20b2eee..f3187aff2bdf 100644 --- a/Casks/a/acronis-true-image.rb +++ b/Casks/a/acronis-true-image.rb @@ -14,13 +14,51 @@ auto_updates true depends_on macos: ">= :big_sur" + depends_on cask: "acronis-true-image-cleanup-tool" pkg "Installer.pkg" - uninstall pkgutil: "com.acronis.CyberProtectHomeOffice", - delete: "/Applications/Acronis True Image.app" + uninstall launchctl: [ + "com.acronis.aakore", + "com.acronis.acep", + "com.acronis.acroprld_client", + "com.acronis.active_protection", + "com.acronis.cyber-protect-service", + "com.acronis.escyberprotect", + "com.acronis.helpertool", + "com.acronis.mms_mini", + "com.acronis.mobile_backup_server", + "com.acronis.mobile_backup_status_server", + "com.acronis.monitor", + "com.acronis.scheduler", + ], + quit: [ + "com.acronis.CyberProtectHomeOffice", + "com.acronis.CyberProtectHomeOffice.FinderSyncExt", + "com.acronis.CyberProtectHomeOffice.help", + "com.acronis.CyberProtectHomeOffice.monitor", + "com.acronis.escyberprotect", + ], + signal: [ + ["TERM", "com.acronis.CyberProtectHomeOffice"], + ["TERM", "com.acronis.CyberProtectHomeOffice.FinderSyncExt"], + ["TERM", "com.acronis.CyberProtectHomeOffice.help"], + ["TERM", "com.acronis.CyberProtectHomeOffice.monitor"], + ["TERM", "com.acronis.escyberprotect"], + ["KILL", "com.acronis.CyberProtectHomeOffice"], + ["KILL", "com.acronis.CyberProtectHomeOffice.FinderSyncExt"], + ["KILL", "com.acronis.CyberProtectHomeOffice.help"], + ["KILL", "com.acronis.CyberProtectHomeOffice.monitor"], + ["KILL", "com.acronis.escyberprotect"], + ], + pkgutil: "com.acronis.CyberProtectHomeOffice", + delete: "/Applications/Acronis True Image.app" - zap delete: [ + zap script: { + executable: "#{HOMEBREW_PREFIX}/lib/acronis-true-image/cleanup_tool", + sudo: true, + }, + delete: [ "/Library/Application Support/Acronis", "/Library/Application Support/BackupClient", "/Library/PrivilegedHelperTools/com.acronis.helpertool",