adding_a_cask.md: change latest/no_check example to advancedcolors (#42028)
This commit is contained in:
parent
f89436fe87
commit
6b0a1f76c7
|
@ -26,23 +26,18 @@ cask 'shuttle' do
|
|||
end
|
||||
```
|
||||
|
||||
And here is one for `airstream`. Note that it has an unversioned download (the download `url` does not contain the version number, unlike the example above). It also suppresses the checksum with `sha256 :no_check` (necessary since the checksum will change when a new distribution is made available). This combination of `version :latest` and `sha256 :no_check` is currently the preferred mechanism when a versioned download URL is not available.
|
||||
And here is one for `advancedcolors`. Note that it has an unversioned download (the download `url` does not contain the version number, unlike the example above). It also suppresses the checksum with `sha256 :no_check` (necessary since the checksum will change when a new distribution is made available). This combination of `version :latest` and `sha256 :no_check` is currently the preferred mechanism when a versioned download URL is not available.
|
||||
|
||||
```ruby
|
||||
cask 'airstream' do
|
||||
cask 'advancedcolors' do
|
||||
version :latest
|
||||
sha256 :no_check
|
||||
|
||||
# amazonaws.com/airstream-clients was verified as official when first introduced to the cask
|
||||
url 'https://s3-us-west-2.amazonaws.com/airstream-clients/mac/airstream-mac.dmg'
|
||||
name 'AirStream'
|
||||
homepage 'http://airstream.io/download/'
|
||||
url 'http://advancedcolors.com/AdvancedColors.zip'
|
||||
name 'Advanced Colors'
|
||||
homepage 'http://advancedcolors.com/'
|
||||
|
||||
app 'AirStream.app'
|
||||
|
||||
caveats do
|
||||
depends_on_java('6')
|
||||
end
|
||||
app 'AdvancedColors.app'
|
||||
end
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue