1 cask "ultimaker-cura" do
2 arch arm: "ARM64", intel: "X64"
6 sha256 "55ba3809a33f8e882f7a2fe608994190bcfbec6d10e53345ee2f2fabd02d80eb"
10 sha256 "beeb3a32381d48fea8d5c27b737acf008b44363b7c75e16b9bed98379dc9de84"
13 url "https://github.com/Ultimaker/Cura/releases/download/#{version.csv.second || version.csv.first}/UltiMaker-Cura-#{version.csv.first}-macos-#{arch}.dmg",
14 verified: "github.com/Ultimaker/Cura/"
17 desc "3D printer and slicing GUI"
18 homepage "https://ultimaker.com/software/ultimaker-cura"
22 regex(/^(\d+(?:\.\d+)+)/i)
23 strategy :github_latest do |json, regex|
24 tag = json["tag_name"]&.sub(/^\D+/, "")
25 match = tag&.match(regex)
28 (match[1] == tag) ? match[1] : "#{match[1]},#{tag}"
32 app "UltiMaker Cura.app"
34 uninstall quit: "nl.ultimaker.cura.dmg"
38 "~/Library/Application Support/cura",
39 "~/Library/Caches/Ultimaker B.V./Ultimaker-Cura",
40 "~/Library/Logs/cura",
41 "~/Library/Preferences/nl.ultimaker.cura.dmg.plist",
42 "~/Library/Preferences/nl.ultimaker.cura.plist",
43 "~/Library/Saved Application State/nl.ultimaker.cura.dmg.savedState",