homebrew-cask/Casks/bettertouchtool.rb

29 lines
815 B
Ruby

cask "bettertouchtool" do
version "3.680,1815"
sha256 "ee1e7c1ffc088f895912ecd0d5caa3bb832a87152e3041619616d515de148896"
url "https://folivora.ai/releases/btt#{version.csv.first}-#{version.csv.second}.zip"
name "BetterTouchTool"
desc "Tool to customize input devices and automate computer systems"
homepage "https://folivora.ai/"
livecheck do
url "https://folivora.ai/releases/"
strategy :page_match do |page|
page.scan(/btt(\d+(?:[._-]\d+)*)\.zip.*?(\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2})/i)
.max_by { |(_, time)| Time.parse(time) }
.first
.tr("-", ",")
end
end
auto_updates true
app "BetterTouchTool.app"
zap trash: [
"~/Library/Application Support/BetterTouchTool",
"~/Library/Preferences/com.hegenberg.BetterTouchTool.plist",
]
end