Merge pull request #194004 from Homebrew/bump-binance-1.54.4
[Homebrew/homebrew-cask.git] / Casks / m / meshlab.rb
blob8da6df5132ea34fac257ed0e951a923ffcc3342e
1 cask "meshlab" do
2   version "2023.12"
3   sha256 "03e722dd4b7d9241d5d203bc1d15854ac3d122dbddee1835f0cdc65c537d53a9"
5   url "https://github.com/cnr-isti-vclab/meshlab/releases/download/MeshLab-#{version}/MeshLab#{version}-macos.dmg",
6       verified: "github.com/cnr-isti-vclab/meshlab/"
7   name "MeshLab"
8   desc "Mesh processing system"
9   homepage "https://www.meshlab.net/"
11   livecheck do
12     url :url
13     regex(/^Meshlab[._-]v?(\d+(?:\.\d+)+)$/i)
14   end
16   app "MeshLab#{version}.app"
18   postflight do
19     # workaround for bug which breaks the app on case-sensitive filesystems
20     Dir.chdir("#{appdir}/MeshLab#{version}.app/Contents/MacOS") do
21       File.symlink("meshlab", "MeshLab") unless File.exist? "MeshLab"
22     end
23   end
25   zap trash: [
26     "~/Library/Application Support/VCG/MeshLab_64bit_fp",
27     "~/Library/Preferences/com.vcg.MeshLab_64bit_fp.plist",
28     "~/Library/Saved Application State/com.vcg.meshlab.savedState",
29   ]
31   caveats do
32     requires_rosetta
33   end
34 end