homebrew-cask/Casks/preform.rb

21 lines
726 B
Ruby

cask "preform" do
version "3.12.0,732"
sha256 "0b40f3388eb71f7b59f51b7c12e372bb88421660bc78f9a89de7fb1da3eab64d"
url "https://s3.amazonaws.com/FormlabsReleases/Release/#{version.before_comma}/PreForm_#{version.before_comma}_release__build_#{version.after_comma}.dmg",
verified: "s3.amazonaws.com/FormlabsReleases/"
name "PreForm"
desc "3D printing setup, management, and monitoring"
homepage "https://formlabs.com/tools/preform/"
livecheck do
url "https://formlabs.com/download-preform-mac/"
strategy :header_match do |headers|
match = headers["location"].match(%r{/PreForm_(\d+(?:\.\d+)*)_release__build_(\d+)\.dmg}i)
"#{match[1]},#{match[2]}"
end
end
app "PreForm.app"
end