excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / l / last-window-quits.rb
blob9c6880bd82570d136a82d5a05f9fb698f33d4d14
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/"
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