diff --git a/Casks/s/stellarium.rb b/Casks/s/stellarium.rb index 7b1fbf64e8c50..9010b838deead 100644 --- a/Casks/s/stellarium.rb +++ b/Casks/s/stellarium.rb @@ -1,21 +1,62 @@ cask "stellarium" do - version "24.1" - sha256 "ca0fa67fb193d4c7aa5bd1f51840a4d40b3637c009ad228d9108664aa36a7776" + on_high_sierra :or_older do + version "0.22.2" + sha256 "5e8c2ee315f8c00a393e7bd22461f9b48355538cec39e1bb771e92a5795bcfb4" + + url "https://github.com/Stellarium/stellarium/releases/download/v#{version}/Stellarium-#{version}-x86_64.zip", + verified: "github.com/Stellarium/stellarium/" + + livecheck do + skip "Legacy version" + end + end + on_mojave do + version "24.1" + sha256 "64174eac7608146397ba1d3bbafbcc005e3d8f863590db87c4cdd31abdd7cd01" + + url "https://github.com/Stellarium/stellarium/releases/download/v#{version.major_minor}/Stellarium-#{version}-qt5-x86_64.zip", + verified: "github.com/Stellarium/stellarium/" + + livecheck do + url :url + strategy :github_latest + end + end + on_catalina do + version "24.1" + sha256 "64174eac7608146397ba1d3bbafbcc005e3d8f863590db87c4cdd31abdd7cd01" + + url "https://github.com/Stellarium/stellarium/releases/download/v#{version.major_minor}/Stellarium-#{version}-qt5-x86_64.zip", + verified: "github.com/Stellarium/stellarium/" + + livecheck do + url :url + strategy :github_latest + end + end + on_big_sur :or_newer do + version "24.1" + sha256 "ca0fa67fb193d4c7aa5bd1f51840a4d40b3637c009ad228d9108664aa36a7776" + + url "https://github.com/Stellarium/stellarium/releases/download/v#{version.major_minor}/Stellarium-#{version}-qt6-macOS.zip", + verified: "github.com/Stellarium/stellarium/" + + livecheck do + url :url + strategy :github_latest + end + end - url "https://github.com/Stellarium/stellarium/releases/download/v#{version.major_minor}/Stellarium-#{version}-qt6-macOS.zip", - verified: "github.com/Stellarium/stellarium/" name "Stellarium" desc "Tool to render realistic skies in real time on the screen" homepage "https://stellarium.org/" - livecheck do - url :url - strategy :github_latest - end - - depends_on macos: ">= :big_sur" + depends_on macos: ">= :sierra" app "Stellarium.app" - zap trash: "~/Library/Preferences/Stellarium" + zap trash: [ + "~/Library/Application Support/Stellarium", + "~/Library/Preferences/Stellarium", + ] end