adding_a_cask.md: change latest/no_check example to advancedcolors (#42028)

This commit is contained in:
Vítor Galvão 2017-12-16 19:55:51 +00:00 committed by GitHub
parent f89436fe87
commit 6b0a1f76c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 11 deletions

View File

@ -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
```