|
1 | 1 | cask "openrgb" do |
2 | 2 | arch arm: "ARM64", intel: "Intel" |
3 | 3 |
|
4 | | - version "0.9,b5f46e3" |
5 | | - sha256 arm: "9d14e4ba253b45d39ddcbc52e63b9f9b6982dcca40492190f4580a6d9ef94de7", |
6 | | - intel: "95725d6b7a6ba1893c24e4e347e97293d261ccedd77af9d27ec17d75e2f103a4" |
| 4 | + version "1.0rc2,0fca93e" |
| 5 | + sha256 arm: "0846520bdc6d7bf1abc6eabbf4f44c5e2507761fcf1e1a220e85c138056f33eb", |
| 6 | + intel: "fb1b000293ecd2981134fdc6b26e9453c9db33977a0442a82605ec4f7ab2e5ef" |
7 | 7 |
|
8 | | - url "https://openrgb.org/releases/release_#{version.csv.first}/OpenRGB_#{version.csv.first}_MacOS_#{arch}_#{version.csv.second}.zip" |
| 8 | + # TODO: Remove the `candidate` part of this url when updating to the next |
| 9 | + # stable version, so we only match stable versions going forward. |
| 10 | + url "https://codeberg.org/OpenRGB/OpenRGB/releases/download/release_candidate_#{version.csv.first}/OpenRGB_#{version.csv.first}_MacOS_#{arch}_#{version.csv.second}.zip", |
| 11 | + verified: "codeberg.org/OpenRGB/OpenRGB/" |
9 | 12 | name "OpenRGB" |
10 | 13 | desc "Open source RGB lighting control that doesn't depend on manufacturer software" |
11 | 14 | homepage "https://openrgb.org/" |
12 | 15 |
|
| 16 | + # TODO: Remove the `(?:rc\d*)?` part of this regex when updating to the next |
| 17 | + # stable version, so we only match stable versions going forward. |
13 | 18 | livecheck do |
14 | 19 | url "https://openrgb.org/releases.html" |
15 | | - regex(/href=.*?OpenRGB[._-]v?(\d+(?:\.\d+)+)[._-]MacOS[._-]#{arch}[._-](\h+)\.zip/i) |
| 20 | + regex(/href=.*?OpenRGB[._-]v?(\d+(?:\.\d+)+(?:rc\d*)?)[._-]MacOS[._-]#{arch}[._-](\h+)\.zip/i) |
16 | 21 | strategy :page_match do |page, regex| |
17 | 22 | page.scan(regex).map { |match| "#{match[0]},#{match[1]}" } |
18 | 23 | end |
19 | 24 | end |
20 | 25 |
|
21 | 26 | disable! date: "2026-09-01", because: :fails_gatekeeper_check |
22 | 27 |
|
| 28 | + depends_on macos: ">= :big_sur" |
| 29 | + |
23 | 30 | app "OpenRGB.app" |
24 | 31 |
|
25 | 32 | zap trash: [ |
|
0 commit comments