diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a7dba764d..c2ccd6954 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -67,7 +67,8 @@ end only `.app` files are supported) * Application homepage * Application version - * Checksum of the file + * SHA-1 Checksum of the file + * name of the linked `.app` file, via `link :app, 'MyApp.app'` In order to find out the checksum for the file, you need to download the file and then: @@ -81,12 +82,8 @@ end Some developers (like Mozilla) and hosts (like Sourceforge) provide checksums, so you can use those directly, without needing to download the file separately. - - In addition to `sha1` you can provide the checksum with `md5`, `sha256`, or `sha512` - in the same manner. Use commands `md5 my-app.dmg` or `shasum -a 256 my-app.dmg` - to obtain these checksums. - - If the application does not have versioned downloads, you can provide option + + If the application does not have versioned downloads, you can provide the option `no_checksum`, which takes no arguments. This is all you need to do to write a Cask! diff --git a/test/support/Casks/basic-cask.rb b/test/support/Casks/basic-cask.rb index 7210a61d5..42f4cf7b0 100644 --- a/test/support/Casks/basic-cask.rb +++ b/test/support/Casks/basic-cask.rb @@ -3,4 +3,5 @@ class BasicCask < TestCask homepage 'http://example.com/' version '1.2.3' sha1 '0123456789012345678901234567890123456789' + link :app, 'TestCask.app' end