Skip to content
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

grafx 2.8.3174,71 #203523

Merged
merged 2 commits into from
Mar 3, 2025
Merged

grafx 2.8.3174,71 #203523

merged 2 commits into from
Mar 3, 2025

Conversation

khipp
Copy link
Member

@khipp khipp commented Mar 2, 2025

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:

Additionally, if adding a new cask:

  • Named the cask according to the token reference.
  • Checked the cask was not already refused (add your cask's name to the end of the search field).
  • 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.

@khipp khipp added the livecheck Issues or PRs related to livecheck label Mar 2, 2025
@BrewTestBot BrewTestBot added the missing zap Cask is missing a zap stanza, please add one. label Mar 2, 2025
Copy link
Member

@samford samford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The existing livecheck block is working as expected but the regex doesn't match 2.8.3174 because the filename uses sdl instead of sdl2. It will match if we use sdl\d* instead but that will also surface some other versions that may or may not be appropriate. There are a bunch of different variants (e.g., sdl, sdl2, nottf, plist, etc.) and I'm not sure which are appropriate for the cask.

It may be best to simply rely on upstream to indicate which should be used for macOS. The cask homepage links to https://grafx2.eu/ as the "main website" and the download page on that site links to download 71 for macOS. We could check that page to get the download ID for macOS and then fetch the headers for the download and match the version from the filename in the Content-Disposition header. It takes two requests and matching the loose text on the download page may break if they tweak the text but it's potentially better than guessing whether a new version is appropriate to use. It also relies on upstream keeping the download page up to date but we can always revisit this if needed.

If that makes sense to you, I can push an updated livecheck block.

@khipp
Copy link
Member Author

khipp commented Mar 3, 2025

It will match if we use sdl\d* instead but that will also surface some other versions that may or may not be appropriate.

That's why I initially removed the livecheck block. It seems like each update would require adjustments anyway, since the download page is inconsistent at best.

If that makes sense to you, I can push an updated livecheck block.

Sure, thanks!

Upstream lists a number of files for macOS on the download page
(https://pulkomandy.tk/projects/GrafX2/downloads) but it's not clear
which variant we should use. The homepage links to grafx2.eu as the
"Main website" and its download page links to a specific download for
macOS, so this updates the `livecheck` block to check that. The full
version isn't listed on the page, so we have to check the filename in
the `Content-Disposition` header of the download response.

This works for now but it's far from ideal, so we may have to revisit
this if/when it breaks or returns an inappropriate version (i.e., the
matching regex is fairly loose and may not work as expected if the
upstream text format changes).
@p-linnane p-linnane merged commit f4af08d into master Mar 3, 2025
11 checks passed
@p-linnane p-linnane deleted the update-grafx branch March 3, 2025 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
livecheck Issues or PRs related to livecheck missing zap Cask is missing a zap stanza, please add one.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants