-
-
Notifications
You must be signed in to change notification settings - Fork 11.2k
fellou 2.5.16 (new cask) #234866
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
fellou 2.5.16 (new cask) #234866
Conversation
Casks/f/fellou.rb
Outdated
| version "2.5.16" | ||
| sha256 :no_check | ||
|
|
||
| on_arm do | ||
| url "https://fellou.s3.us-west-1.amazonaws.com/FellouPC/Fellou-CE-1.0.16-2.5.16-2025-10-31-1859-arm64.dmg", | ||
| verified: "fellou.s3.us-west-1.amazonaws.com/FellouPC/" | ||
| end | ||
| on_intel do | ||
| url "https://fellou.s3.us-west-1.amazonaws.com/FellouPC/Fellou-CE-1.0.16-2.5.16-2025-10-31-1859-x64.dmg", | ||
| verified: "fellou.s3.us-west-1.amazonaws.com/FellouPC/" | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rework this entire section.
Use arch instead on_* blocks.
The version is not used at all
Implement sha256
The URL's are not acceptable or versioned.
| sha256 arm: "879e31bccc618d967f632ccad21cb66bed18c23ed2d311486468c272a025b0d4", | ||
| intel: "8296cb4f1a8699a2456224b1955e628c5ba19c510ae7993876770af350f00f30" | ||
|
|
||
| url "https://fellou.s3.us-west-1.amazonaws.com/FellouPC/Fellou-CE-1.0.16-#{version}-2025-10-31-1859-#{arch}.dmg", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What the previous review was getting at it is that any parts of this URL that vary between releases will need to be part of the cask version. In this case, that will likely include "2025-10-31-1859" as well and may include "1.0.16". If you look at other casks, we handle this with a comma-separated version where the first part is the actual version (e.g., 2.5.16,1.0.16,2025-10-31-1859) and interpolate the values in the url like #{version.csv.first}. The livecheck block also has to produce the same version format, so you could parse the values from the resource URL using a regex with capture groups for these distinct parts.
| livecheck do | ||
| url "https://fellou.ai/api/download" | ||
| strategy :json do |json| | ||
| json.dig("list", 0, "resource")&.map { |r| r["version"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned in previous review for other PRs, this should not rely on the data being in a specific order. Instead, you need to programmatically identify the object that contains data for the macOS release and return arch-specific versions.
Important: Do not tick a checkbox if you haven’t performed its action. Honesty is indispensable for a smooth review process.
In the following questions
<cask>is the token of the cask you're submitting.After making any changes to a cask, existing or new, verify:
brew audit --cask --online <cask>is error-free.brew style --fix <cask>reports no offenses.Additionally, if adding a new cask:
brew audit --cask --new <cask>worked successfully.HOMEBREW_NO_INSTALL_FROM_API=1 brew install --cask <cask>worked successfully.brew uninstall --cask <cask>worked successfully.