browsh.rb 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # typed: false
  2. # frozen_string_literal: true
  3. # This file was generated by GoReleaser. DO NOT EDIT.
  4. class Browsh < Formula
  5. desc "The modern, text-based browser"
  6. homepage "https://www.brow.sh"
  7. version "1.8.0"
  8. on_macos do
  9. if Hardware::CPU.arm?
  10. url "https://github.com/browsh-org/browsh/releases/download/v1.8.0/browsh_1.8.0_darwin_arm64.tar.gz"
  11. sha256 "5b42e7b039b7e98d4edc7ec7ec4146f9f790a965892e19b77b5bd2a17adc7932"
  12. def install
  13. bin.install "browsh"
  14. end
  15. end
  16. if Hardware::CPU.intel?
  17. url "https://github.com/browsh-org/browsh/releases/download/v1.8.0/browsh_1.8.0_darwin_amd64.tar.gz"
  18. sha256 "3d1ec4480610c931f4bf64b461ba0c71e21cdae192a86e46b8b763f8442fa63c"
  19. def install
  20. bin.install "browsh"
  21. end
  22. end
  23. end
  24. on_linux do
  25. if Hardware::CPU.intel?
  26. url "https://github.com/browsh-org/browsh/releases/download/v1.8.0/browsh_1.8.0_linux_amd64"
  27. sha256 "30a6b4e5220be088bce9b2416164eed7d3d8de76741e6a71d24a35b2fe6f1ae7"
  28. def install
  29. bin.install "browsh_1.8.0_linux_amd64" => "browsh"
  30. end
  31. end
  32. if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
  33. url "https://github.com/browsh-org/browsh/releases/download/v1.8.0/browsh_1.8.0_linux_armv6"
  34. sha256 "e799299732d9ebc6885c27e483fe8c43d452f9052f09df1d674600cba5eb2177"
  35. def install
  36. bin.install "browsh_1.8.0_linux_armv6" => "browsh"
  37. end
  38. end
  39. if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
  40. url "https://github.com/browsh-org/browsh/releases/download/v1.8.0/browsh_1.8.0_linux_arm64"
  41. sha256 "e5e3ed418e0930d0ec12394894269983f6e6da80ff60d03909e2e5c307971a99"
  42. def install
  43. bin.install "browsh_1.8.0_linux_arm64" => "browsh"
  44. end
  45. end
  46. end
  47. def caveats; <<~EOS
  48. You need Firefox 57 or newer to run Browsh
  49. EOS
  50. end
  51. end