Skip to content

Commit

Permalink
acronis-true-image 41592: implement zap stanza
Browse files Browse the repository at this point in the history
Uses `acronis-true-image-cleanup-tool`
  • Loading branch information
Valentin Kulesh committed Nov 5, 2024
1 parent 2e7159f commit 6b9f8e6
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions Casks/a/acronis-true-image.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,28 @@
cask "acronis-true-image" do
version "2021"
sha256 :no_check # required as upstream package is updated in-place
version "41592"
sha256 "304335d0e8e26bc46571e6926baf20da0f2d694f20a8728c7f220236d1ed29c2"

url "https://dl.acronis.com/u/AcronisTrueImage#{version}.dmg"
url "https://dl.acronis.com/u/AcronisTrueImage_#{version}.dmg"
name "Acronis True Image"
desc "Full image backup and cloning software"
homepage "https://www.acronis.com/personal/computer-backup/"
homepage "https://www.acronis.com/products/true-image/"

deprecate! date: "2024-02-07", because: :discontinued
livecheck do
url "https://www.acronis.com/en-us/support/updates/changes.html?p=42798"
regex(%r{<span class="build">Build</span><span class="build-number"> (.+?)</span>})
end

pkg "Install Acronis True Image.pkg"
auto_updates true
depends_on macos: ">= :big_sur"
depends_on cask: "acronis-true-image-cleanup-tool"

uninstall pkgutil: "com.acronis.trueimageformac",
pkg "Installer.pkg"

uninstall pkgutil: "com.acronis.CyberProtectHomeOffice",
delete: "/Applications/Acronis True Image.app"

zap script: {
executable: "#{HOMEBREW_PREFIX}/lib/acronis-true-image/cleanup_tool",
sudo: true,
}
end

0 comments on commit 6b9f8e6

Please sign in to comment.