Skip to content

Commit

Permalink
Merge pull request #170708 from niu541412/stellarium_legacy_version
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanazamfirei committed Apr 5, 2024
2 parents 32afb58 + 3335633 commit f148290
Showing 1 changed file with 52 additions and 11 deletions.
63 changes: 52 additions & 11 deletions Casks/s/stellarium.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f148290

Please sign in to comment.