github.com/amane3/goreleaser@v0.182.0/internal/pipe/brew/testdata/test.rb.golden (about)

     1  # This file was generated by GoReleaser. DO NOT EDIT.
     2  class Test < Formula
     3    desc "Some desc"
     4    homepage "https://google.com"
     5    version "0.1.3"
     6    license "MIT"
     7    bottle :unneeded
     8  
     9    if OS.mac?
    10      url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Darwin_x86_64.tar.gz"
    11      sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c68"
    12    end
    13    if OS.linux? && Hardware::CPU.intel?
    14      url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Linux_x86_64.tar.gz"
    15      sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67"
    16    end
    17    if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
    18      url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Arm6.tar.gz"
    19      sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67"
    20    end
    21    if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
    22      url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Arm64.tar.gz"
    23      sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67"
    24    end
    25  
    26    devel do
    27      url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Darwin_x86_64.tar.gz"
    28      sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c68"
    29    end
    30  
    31    depends_on "gtk+"
    32  
    33    conflicts_with "svn"
    34  
    35    def install
    36      custom install script
    37      another install script
    38    end
    39  
    40    def post_install
    41      system "touch", "/tmp/foo"
    42    end
    43  
    44    def caveats; <<~EOS
    45      Here are some caveats
    46    EOS
    47    end
    48  
    49    plist_options :startup => false
    50  
    51    def plist; <<~EOS
    52      it works
    53    EOS
    54    end
    55  
    56    test do
    57      system "#{bin}/foo -version"
    58    end
    59  end