-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #380 from cantino/revert-379-chore/drop-homebrew-tap
Revert "Drop custom homebrew tap"
- Loading branch information
Showing
4 changed files
with
61 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
./pkg/brew |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# To install: | ||
# brew tap cantino/mcfly | ||
# brew install mcfly | ||
# | ||
# To remove: | ||
# brew uninstall mcfly | ||
# brew untap cantino/mcfly | ||
|
||
class Mcfly < Formula | ||
version 'v0.8.1' | ||
desc "McFly" | ||
homepage "https://github.com/cantino/mcfly" | ||
|
||
if OS.mac? | ||
url "https://github.com/cantino/mcfly/releases/download/#{version}/mcfly-#{version}-x86_64-apple-darwin.tar.gz" | ||
sha256 "db8d125c040fa9f97ba9b7777d1109ff2598db386f42e79e24aef66556500c11" | ||
elsif OS.linux? | ||
url "https://github.com/cantino/mcfly/releases/download/#{version}/mcfly-#{version}-x86_64-unknown-linux-musl.tar.gz" | ||
sha256 "31231a4085f73eef41ab222e08518b7912cce55e7c1396931818a0fbfacf4fef" | ||
end | ||
|
||
def install | ||
bin.install "mcfly" | ||
end | ||
|
||
def caveats | ||
<<~EOS | ||
ONE MORE STEP! | ||
Add the following to the end of your ~/.bashrc, ~/.zshrc, or ~/.config/fish/config.fish file. | ||
Bash: | ||
eval "$(mcfly init bash)" | ||
Zsh: | ||
eval "$(mcfly init zsh)" | ||
Fish: | ||
mcfly init fish | source | ||
You will need to restart your terminal when first installing and on some updates. If you receive a McFly error when running commands, try restarting your terminal. | ||
EOS | ||
end | ||
end |