github.com/ahmet2mir/goreleaser@v0.180.3-0.20210927151101-8e5ee5a9b8c5/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 bottle :unneeded 11 12 on_macos do 13 if Hardware::CPU.intel? 14 url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Darwin_x86_64.tar.gz" 15 sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c68" 16 end 17 if Hardware::CPU.arm? 18 url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Darwin_arm64.tar.gz" 19 sha256 "1633f61598ab0791e213135923624eb342196b349490sadasdsadsadasdasdsd" 20 end 21 end 22 23 on_linux do 24 if Hardware::CPU.intel? 25 url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Linux_x86_64.tar.gz" 26 sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67" 27 end 28 if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? 29 url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Arm6.tar.gz" 30 sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67" 31 end 32 if Hardware::CPU.arm? && Hardware::CPU.is_64_bit? 33 url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Arm64.tar.gz" 34 sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67" 35 end 36 end 37 38 devel do 39 url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Darwin_x86_64.tar.gz" 40 sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c68" 41 end 42 43 depends_on "gtk+" 44 45 conflicts_with "svn" 46 47 def install 48 custom install script 49 another install script 50 end 51 52 def post_install 53 system "touch", "/tmp/foo" 54 end 55 56 def caveats; <<~EOS 57 Here are some caveats 58 EOS 59 end 60 61 plist_options :startup => false 62 63 def plist; <<~EOS 64 it works 65 EOS 66 end 67 68 test do 69 system "#{bin}/foo -version" 70 end 71 end