removed strange modification that was made for commas in our version string + anka-build-cloud-controller-and-registry 1.20.0 -> 1.21.0 (#115818)

This commit is contained in:
Nathan Pierce 2021-12-13 18:10:08 -05:00 committed by GitHub
parent 830809fcde
commit f5feebb6d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 11 deletions

View File

@ -1,26 +1,21 @@
cask "anka-build-cloud-controller-and-registry" do
version "1.20.0,035872f5"
sha256 "cf375336267ce1712995d26fad9a0aa690c95d6e98ee87b9bdb8caae814eb6c3"
version "1.21.0-bcc26b24"
sha256 "5ca9205da185f762564f8ae4c8d46be71c4ab57a42c5feef3ba2fa89c00a4ba4"
url "https://downloads.veertu.com/anka/AnkaControllerRegistry-#{version.before_comma}-#{version.after_comma}.pkg"
url "https://downloads.veertu.com/anka/AnkaControllerRegistry-#{version}.pkg"
name "Anka Build Cloud Controller & Registry"
desc "Virtual machine management GUI/API and registry"
homepage "https://veertu.com/"
livecheck do
url "https://veertu.com/downloads/ankacontroller-registry-mac-latest"
regex(/AnkaControllerRegistry[._-]?v?(\d+(?:\.\d+)+)[._-](\h+)\.pkg/i)
strategy :header_match do |headers, regex|
match = headers["location"]&.match(regex)
next if match.blank?
"#{match[1]},#{match[2]}"
end
strategy :header_match
regex(/AnkaControllerRegistry[._-]?v?(\d+(?:\.\d+)*[._-]\h+)\.pkg/i)
end
depends_on macos: ">= :yosemite"
pkg "AnkaControllerRegistry-#{version.before_comma}-#{version.after_comma}.pkg"
pkg "AnkaControllerRegistry-#{version}.pkg"
uninstall script: {
executable: "/Library/Application Support/Veertu/Anka/tools/controller/uninstall.sh",