homebrew-cask/Casks/a/anka-build-cloud-controller.rb

34 lines
1.1 KiB
Ruby

cask "anka-build-cloud-controller" do
arch arm: "arm64", intel: "amd64"
version "1.41.1-ac4f02c4"
sha256 arm: "f73aa85b42ecb5a9cf37b36f5099379ea3f9556bd4f5530447316ddc8c945c19",
intel: "889dbb9abbb902142023b5ffaf51965b25a638a31bb4d736bef7a9e5390aad25"
url "https://downloads.veertu.com/anka/anka-controller-#{arch}-#{version}.pkg"
name "Anka Build Cloud Controller"
desc "Anka virtual machine orchestrator GUI & API"
homepage "https://veertu.com/"
livecheck do
url "https://veertu.com/downloads/anka-build-cloud-controller-darwin-#{arch}-latest"
regex(/anka-controller-#{arch}[._-]?v?(\d+(?:\.\d+)*[._-]\h+)\.pkg/i)
strategy :header_match
end
pkg "anka-controller-#{arch}-#{version}.pkg"
uninstall script: {
executable: "/Library/Application Support/Veertu/Anka/tools/controller/uninstall.sh",
args: ["-f"],
sudo: true,
}
zap trash: "/Library/Logs/Veertu/AnkaController",
rmdir: "/Library/Application Support/Veertu/Anka/anka-controller"
caveats do
license "https://veertu.com/terms-and-conditions/"
end
end