xshellinc / iotit

Flashing Tool for SBCs
Apache License 2.0
25 stars 1 forks source link

Add as package to Brew #89

Closed dbsparkle closed 7 years ago

dbsparkle commented 7 years ago

See more here: https://github.com/Homebrew/brew

tectiv3 commented 7 years ago
$ brew tap xshellinc/iotit
==> Tapping xshellinc/iotit
Cloning into '/usr/local/Homebrew/Library/Taps/xshellinc/homebrew-iotit'...
remote: Counting objects: 5, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 5 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (5/5), done.
Tapped 1 formula (30 files, 36.8KB)
[~/go/src/github.com/xshellinc/iotit]
$ brew install iotit --HEAD
==> Installing iotit from xshellinc/iotit
==> Cloning https://github.com/xshellinc/iotit.git
Updating ~/Library/Caches/Homebrew/iotit--git
==> Checking out branch develop
==> go build -ldflags -s -w -X main.version=HEAD-042df5e -o /usr/local/Cellar/iotit/HEAD-042df5e/bin/iotit
🍺  /usr/local/Cellar/iotit/HEAD-042df5e: 3 files, 7.3MB, built in 5 seconds

HEAD is using develop branch as current release can't be installed through brew.

tectiv3 commented 7 years ago

Bottles (bin packages) example: https://github.com/goochjj/homebrew-custom/blob/master/bash.rb https://github.com/goochjj/homebrew-custom/blob/master/update_bash_bottle.sh