1 cask "last-window-quits" do
2 version "1.1.3,2024,11"
3 sha256 "2b6645a0910f27a7021828a44a8744e03db7a7a99b75c3d88ad5fc09c31f29e0"
5 url "https://lawand.io/wp-content/uploads/#{version.csv.second}/#{version.csv.third}/last-window-quits-#{version.csv.first}.zip"
6 name "Last Window Quits"
7 desc "Automatically quit apps when their last window is closed"
8 homepage "https://lawand.io/last-window-quits/"
11 url "https://raw.githubusercontent.com/lawand-dot-io/last-window-quits/main/appcast.xml"
12 regex(%r{/(\d+)/(\d+)/[^/]+?$}i)
13 strategy :sparkle do |item, regex|
14 match = item.url&.match(regex)
17 "#{item.short_version},#{match[1]},#{match[2]}"
22 depends_on macos: ">= :high_sierra"
24 app "Last Window Quits.app"
27 "~/Library/Application Support/io.lawand.last-window-quits",
28 "~/Library/HTTPStorages/io.lawand.last-window-quits",
29 "~/Library/LaunchAgents/io.lawand.last-window-quits.plist",
30 "~/Library/Preferences/io.lawand.last-window-quits.plist",