34 lines
1.1 KiB
Ruby
34 lines
1.1 KiB
Ruby
cask "anka-build-cloud-controller" do
|
|
arch arm: "arm64", intel: "amd64"
|
|
|
|
version "1.42.0-92735895"
|
|
sha256 arm: "91732e6bdd14749984774147a629d94556637a927cde11cc6d70db101260c0aa",
|
|
intel: "b21ca007d38521360271eed9f475cce71aa97ccbde87916e29e97203724dfcdd"
|
|
|
|
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
|