Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datweatherdoe: convert to on_system blocks #137809

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions Casks/datweatherdoe.rb
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
cask "datweatherdoe" do
if MacOS.version <= :catalina
on_catalina :or_older do
version "2.2.0"
sha256 "0e7c7a9a770f3f7e10a17610e4e8670f3c7050a872b1cb2947bfbbbfda94174f"
else
version "3.1.0"
sha256 "19eac800249b286f7543991ab297c808aa9f96ee1412a0f133bd20278b129ede"
end

url "https://github.com/inderdhir/DatWeatherDoe/releases/download/#{version}/DatWeatherDoe-#{version}.dmg"
name "DatWeatherDoe"
desc "Menu bar weather app"
homepage "https://github.com/inderdhir/DatWeatherDoe"

if MacOS.version <= :catalina
livecheck do
skip "Legacy version for Catalina and earlier"
end
else
end
on_big_sur :or_newer do
version "3.1.0"
sha256 "19eac800249b286f7543991ab297c808aa9f96ee1412a0f133bd20278b129ede"

livecheck do
url :url
strategy :github_latest
end
end

url "https://github.com/inderdhir/DatWeatherDoe/releases/download/#{version}/DatWeatherDoe-#{version}.dmg"
name "DatWeatherDoe"
desc "Menu bar weather app"
homepage "https://github.com/inderdhir/DatWeatherDoe"

app "DatWeatherDoe.app"

zap trash: "~/Library/Preferences/com.inderdhir.DatWeatherDoe.plist"
Expand Down