github.com/ahmet2mir/goreleaser@v0.180.3-0.20210927151101-8e5ee5a9b8c5/internal/pipe/brew/testdata/TestRunPipeForMultipleArmVersions/multiple_armv5.rb.golden (about) 1 # typed: false 2 # frozen_string_literal: true 3 4 # This file was generated by GoReleaser. DO NOT EDIT. 5 class MultipleArmv5 < Formula 6 desc "A run pipe test formula and FOO=foo_is_bar" 7 homepage "https://github.com/goreleaser" 8 version "1.0.1" 9 bottle :unneeded 10 11 on_macos do 12 if Hardware::CPU.intel? 13 url "https://dummyhost/download/v1.0.1/bin.tar.gz" 14 sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" 15 end 16 end 17 18 on_linux do 19 if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? 20 url "https://dummyhost/download/v1.0.1/armv5.tar.gz" 21 sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" 22 end 23 if Hardware::CPU.arm? && Hardware::CPU.is_64_bit? 24 url "https://dummyhost/download/v1.0.1/arm64.tar.gz" 25 sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" 26 end 27 end 28 29 depends_on "zsh" 30 depends_on "bash" => :recommended 31 32 conflicts_with "gtk+" 33 conflicts_with "qt" 34 35 def install 36 bin.install "multiple_armv5" 37 end 38 39 def caveats; <<~EOS 40 don't do this multiple_armv5 41 EOS 42 end 43 44 plist_options :startup => false 45 46 def plist; <<~EOS 47 <xml>whatever</xml> 48 EOS 49 end 50 51 test do 52 system "true" 53 system "#{bin}/foo -h" 54 end 55 end