excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / a / algodoo.rb
blob0d5a604c9daa4b34cd7a9e4a2629c6592b751469
1 cask "algodoo" do
2   version "2.2.2"
3   sha256 "9b91b3356ccbc880ab9b3e8a838a82aec18ff513b2a8b313218b5d63c7817c94"
5   url "https://www.algodoo.com/download/Algodoo_#{version.dots_to_underscores}-macOS.dmg"
6   name "Algodoo"
7   desc "Draw and interact with physical systems"
8   homepage "https://www.algodoo.com/"
10   livecheck do
11     url "https://www.algodoo.com/download/"
12     regex(/href=.*?Algodoo[._-]v?(\d+(?:[._]\d+)+)[._-]macOS\.dmg/i)
13     strategy :page_match do |page, regex|
14       page.scan(regex)&.map { |match| match[0].tr("_", ".") }
15     end
16   end
18   app "Algodoo.app"
20   zap trash: [
21     "~/Library/Application Support/Algodoo",
22     "~/Library/Preferences/se.algoryx.Algodoo.plist",
23     "~/Library/Saved Application State/se.algoryx.algodoo-regular.savedState",
24   ]
25 end