Merge pull request #200927 from Homebrew/bump-zed-0.172.10
[Homebrew/homebrew-cask.git] / Casks / l / last-window-quits.rb
blob44ffac6167e898d0bbb141beef74bc9d8da20b16
1 cask "last-window-quits" do
2   version "1.1.4,2024,12"
3   sha256 "10938d6cd6e201914d3041673509891f80e102c6fa78be8ddf1c3caed1fd862d"
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/"
10   livecheck do
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)
15       next if match.blank?
17       "#{item.short_version},#{match[1]},#{match[2]}"
18     end
19   end
21   auto_updates true
22   depends_on macos: ">= :high_sierra"
24   app "Last Window Quits.app"
26   zap trash: [
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",
31     "~/LWQ Debug Logs",
32   ]
33 end