cask "010-editor" do version "15.0.1" sha256 "8690e1717d714b836bcb61ce22b170a982b8e493a6cbaea53eae9d26bf699108" url "https://download.sweetscape.com/010EditorMac64Installer#{version}.dmg" name "010 Editor" desc "Text editor" homepage "https://www.sweetscape.com/" livecheck do url "https://www.sweetscape.com/download/010editor/" regex(/Version:?\s*(\d+(?:\.\d+)+),\s*macOS/i) end app "010 Editor.app" zap trash: [ "~/.config/SweetScape", "~/Library/Application Support/SweetScape", "~/Library/Saved Application State/com.SweetScape.010Editor.savedState", ], rmdir: "~/Documents/SweetScape" caveats do requires_rosetta end end