27 lines
886 B
Ruby
27 lines
886 B
Ruby
cask "preform" do
|
|
version "3.34.0,308_54766"
|
|
sha256 "f85f2797412c981954ce7b264a6bb0ae1ea1bef82b8ca835d5e05f8136def67e"
|
|
|
|
url "https://downloads.formlabs.com/PreForm/Release/#{version.csv.first}/PreForm_mac_#{version.csv.first}_release_releaser_#{version.csv.second}.dmg"
|
|
name "PreForm"
|
|
desc "3D printing setup, management, and monitoring"
|
|
homepage "https://formlabs.com/tools/preform/"
|
|
|
|
livecheck do
|
|
url "https://formlabs.com/download-preform-mac/"
|
|
regex(%r{/PreForm_mac_(\d+(?:\.\d+)+)_release_releaser_(\d+(?:[._-]\d+)+)\.dmg}i)
|
|
strategy :page_match do |page, regex|
|
|
page.scan(regex).map { |match| "#{match[0]},#{match[1]}" }
|
|
end
|
|
end
|
|
|
|
depends_on macos: ">= :high_sierra"
|
|
|
|
app "PreForm.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Preferences/com.formlabs.PreForm.plist",
|
|
"~/Library/Saved Application State/com.formlabs.PreForm.savedState",
|
|
]
|
|
end
|