github.com/triarius/goreleaser@v1.12.5/internal/pipe/brew/testdata/TestFullPipe/custom_require.rb.golden (about) 1 # typed: false 2 # frozen_string_literal: true 3 4 # This file was generated by GoReleaser. DO NOT EDIT. 5 require_relative "custom_download_strategy" 6 class CustomRequire < Formula 7 desc "Run pipe test formula and FOO=foo_is_bar" 8 homepage "https://github.com/goreleaser" 9 version "1.0.1" 10 11 depends_on "zsh" => :optional 12 depends_on "bash" => "3.2.57" 13 depends_on "fish" => :optional 14 depends_on :macos 15 16 on_macos do 17 url "https://dummyhost/download/v1.0.1/bin.tar.gz", using: CustomDownloadStrategy 18 sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" 19 20 def install 21 bin.install "custom_require" 22 end 23 24 if Hardware::CPU.arm? 25 def caveats 26 <<~EOS 27 The darwin_arm64 architecture is not supported for the CustomRequire 28 formula at this time. The darwin_amd64 binary may work in compatibility 29 mode, but it might not be fully supported. 30 EOS 31 end 32 end 33 end 34 35 conflicts_with "gtk+" 36 conflicts_with "qt" 37 38 def post_install 39 system "echo" 40 touch "/tmp/hi" 41 end 42 43 def caveats 44 <<~EOS 45 don't do this custom_require 46 EOS 47 end 48 49 plist_options startup: false 50 51 def plist 52 <<~EOS 53 <xml>whatever</xml> 54 EOS 55 end 56 57 service do 58 run foo/bar 59 keep_alive true 60 end 61 62 test do 63 system "true" 64 system "#{bin}/foo", "-h" 65 end 66 end