Reverted numbering from numbered lists to generic 1s
This commit is contained in:
parent
07ac5bf3b6
commit
de2972d8b5
@ -7,9 +7,9 @@ The `brew livecheck` command finds the newest version of a formula, cask or reso
|
||||
When livecheck isn't given instructions for how to check for upstream versions, it does the following by default:
|
||||
|
||||
1. For __formulae__: Collect the `stable`, `head` and `homepage` URLs, in that order. For __casks__: Collect the `appcast`, `url` and `homepage` URLs, in that order. For __resource__: Collect the `url` (since resource's url is considered `stable` by default)
|
||||
2. Determine if any strategies apply to the first URL. If not, try the next URL.
|
||||
3. If a strategy can be applied, use it to check for new versions.
|
||||
4. Return the newest version (or an error if versions could not be found at any available URLs).
|
||||
1. Determine if any strategies apply to the first URL. If not, try the next URL.
|
||||
1. If a strategy can be applied, use it to check for new versions.
|
||||
1. Return the newest version (or an error if versions could not be found at any available URLs).
|
||||
|
||||
It's sometimes necessary to override this default behavior to create a working check. If a source doesn't provide the newest version, we need to check a different one. If livecheck doesn't correctly match version text, we need to provide an appropriate regex or `strategy` block.
|
||||
|
||||
@ -21,9 +21,9 @@ This can be accomplished by adding a `livecheck` block to the formula/cask/resou
|
||||
|
||||
> Note: `--resources` flag only works with Formulae.
|
||||
|
||||
2. **Research available sources to select a URL**. Try removing the file name from `stable`/`url`, to see if this is a directory listing page. If that doesn't work, try to find a page that links to the file (e.g. a download page). If it's not possible to find the newest version on the website, try checking other sources from the formula/cask. When necessary, search for other sources outside of the formula/cask.
|
||||
1. **Research available sources to select a URL**. Try removing the file name from `stable`/`url`, to see if this is a directory listing page. If that doesn't work, try to find a page that links to the file (e.g. a download page). If it's not possible to find the newest version on the website, try checking other sources from the formula/cask. When necessary, search for other sources outside of the formula/cask.
|
||||
|
||||
3. **Create a regex, if necessary**. If the check works without a regex and wouldn't benefit from having one, it's usually fine to omit it. More information on creating regexes can be found in the [regex guidelines](#regex-guidelines) section.
|
||||
1. **Create a regex, if necessary**. If the check works without a regex and wouldn't benefit from having one, it's usually fine to omit it. More information on creating regexes can be found in the [regex guidelines](#regex-guidelines) section.
|
||||
|
||||
### General guidelines
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user