1
0
mirror of https://github.com/ericchiang/pup synced 2025-02-18 18:12:01 +00:00

update homebrew formula to include sha256 digest

This commit is contained in:
Eric Chiang 2016-07-22 22:03:27 -07:00
parent fb09a23cce
commit dcfee170e2
2 changed files with 10 additions and 10 deletions

14
pup.rb
View File

@ -1,15 +1,15 @@
# This file was generated by release.py # This file was generated by release.sh
require 'formula' require 'formula'
class Pup < Formula class Pup < Formula
homepage 'https://github.com/EricChiang/pup' homepage 'https://github.com/ericchiang/pup'
version '0.3.9' version '0.4.0'
if Hardware.is_64_bit? if Hardware.is_64_bit?
url 'https://github.com/EricChiang/pup/releases/download/v0.3.9/pup_darwin_amd64.zip' url 'https://github.com/ericchiang/pup/releases/download/v0.4.0/pup_v0.4.0_darwin_amd64.zip'
sha1 'cc7cfc54567eb5b6d6ffdb1784e5c8e462845cca' sha256 'c539a697efee2f8e56614a54cb3b215338e00de1f6a7c2fa93144ab6e1db8ebe'
else else
url 'https://github.com/EricChiang/pup/releases/download/v0.3.9/pup_darwin_386.zip' url 'https://github.com/ericchiang/pup/releases/download/v0.4.0/pup_v0.4.0_darwin_386.zip'
sha1 'f83ddac28176bcaca8f80e8182064f7cef62595b' sha256 '75c27caa0008a9cc639beb7506077ad9f32facbffcc4e815e999eaf9588a527e'
end end
def install def install

View File

@ -51,10 +51,10 @@ class Pup < Formula
version '0.4.0' version '0.4.0'
if Hardware.is_64_bit? if Hardware.is_64_bit?
url 'https://github.com/ericchiang/pup/releases/download/${VERSION}/${DARWIN_AMD64}' url 'https://github.com/ericchiang/pup/releases/download/v${VERSION}/${DARWIN_AMD64}'
sha256 '$( sha256sum dist/${DARWIN_AMD64} | awk '{ print $1 }' | xargs printf )' sha256 '$( sha256sum dist/${DARWIN_AMD64} | awk '{ print $1 }' | xargs printf )'
else else
url 'https://github.com/ericchiang/pup/releases/download/${VERSION}/${DARWIN_386}' url 'https://github.com/ericchiang/pup/releases/download/v${VERSION}/${DARWIN_386}'
sha256 '$( sha256sum dist/${DARWIN_386} | awk '{ print $1 }' | xargs printf )' sha256 '$( sha256sum dist/${DARWIN_386} | awk '{ print $1 }' | xargs printf )'
end end