-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #170708 from niu541412/stellarium_legacy_version
- Loading branch information
Showing
1 changed file
with
52 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |