github.com/goreleaser/goreleaser@v1.25.1/internal/pipe/brew/testdata/TestFullFormulae.rb.golden (about) 1 # typed: false 2 # frozen_string_literal: true 3 4 # This file was generated by GoReleaser. DO NOT EDIT. 5 class Test < Formula 6 desc "Some desc" 7 homepage "https://google.com" 8 version "0.1.3" 9 license "MIT" 10 11 depends_on "gtk+" 12 13 on_macos do 14 if Hardware::CPU.intel? 15 url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Darwin_x86_64.tar.gz" 16 sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c68" 17 18 def install 19 bin.install "test" 20 end 21 end 22 if Hardware::CPU.arm? 23 url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Darwin_arm64.tar.gz" 24 sha256 "1df5fdc2bad4ed4c28fbdc77b6c542988c0dc0e2ae34e0dc912bbb1c66646c58" 25 26 def install 27 bin.install "test" 28 end 29 end 30 end 31 32 on_linux do 33 if Hardware::CPU.intel? 34 url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Linux_x86_64.tar.gz" 35 sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67" 36 37 def install 38 bin.install "test" 39 end 40 end 41 if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? 42 url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Arm6.tar.gz" 43 sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67" 44 45 def install 46 bin.install "test" 47 end 48 end 49 if Hardware::CPU.arm? && Hardware::CPU.is_64_bit? 50 url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Arm64.tar.gz" 51 sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67" 52 53 def install 54 bin.install "test" 55 end 56 end 57 end 58 59 conflicts_with "svn" 60 61 devel do 62 url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Darwin_x86_64.tar.gz" 63 sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c68" 64 end 65 66 def post_install 67 touch "/tmp/foo" 68 system "echo", "done" 69 end 70 71 def caveats 72 <<~EOS 73 Here are some caveats 74 EOS 75 end 76 77 plist_options startup: false 78 79 def plist 80 <<~EOS 81 it works 82 EOS 83 end 84 85 test do 86 system "#{bin}/foo", "-version" 87 end 88 end