From 5da332e9e869cea95956500a2615b033703e57ba Mon Sep 17 00:00:00 2001 From: Valentin Kulesh Date: Mon, 4 Nov 2024 20:57:57 +0300 Subject: [PATCH] acronis-true-image 29.1,41592: improve uninstall and implement zap Uses `acronis-true-image-cleanup-tool` --- Casks/a/acronis-true-image.rb | 44 ++++++++++++++++++++++++++++++++--- 1 file changed, 41 insertions(+), 3 deletions(-) diff --git a/Casks/a/acronis-true-image.rb b/Casks/a/acronis-true-image.rb index 9681e20b2ee..f3187aff2bd 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",