Closed vitorgalvao closed 3 years ago
@vitorgalvao Nanda's ElectronBuilder
strategy is now merged, so you can update related casks to simply use strategy :electron_builder
and this will work in the same manner as the existing strategy
blocks.
If you need to modify the version, you can access the yaml
hash in the strategy block like so:
strategy :electron_builder do |yaml|
yaml["version"]&.gsub(/\D/, "")
end
Provide a detailed description of the proposed feature
A bunch of Electron apps use
electron-builder
appcasts which can be detected withfind-appcast
.Since those
appcasts
are YAML files with a specific pattern, detecting versions is simple:These appcasts are somewhat common, which makes them good candidates for a new strategy.
What is the motivation for the feature?
Making simpler
livecheck
s, which will result in more casks being up-to-date and less maintenance effort.How will the feature be relevant to at least 90% of Homebrew users?
User who make casks will have an easier time doing so (in these specific cases). Users who use casks will benefit indirectly from casks which are easier to maintain.
What alternatives to the feature have been considered?
Doing it the long (well, medium) way as in the code block above.