mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-28 04:44:34 +02:00
e2c93f5f39
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
49 lines
966 B
Plaintext
49 lines
966 B
Plaintext
# typed: false
|
|
# frozen_string_literal: true
|
|
|
|
# This file was generated by GoReleaser. DO NOT EDIT.
|
|
require_relative "custom_download_strategy"
|
|
class CustomRequire < Formula
|
|
desc "A run pipe test formula and FOO=foo_is_bar"
|
|
homepage "https://github.com/goreleaser"
|
|
version "1.0.1"
|
|
bottle :unneeded
|
|
depends_on :macos
|
|
|
|
on_macos do
|
|
if Hardware::CPU.intel?
|
|
url "https://dummyhost/download/v1.0.1/bin.tar.gz", :using => CustomDownloadStrategy
|
|
sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
|
end
|
|
|
|
depends_on arch: [:x86_64]
|
|
end
|
|
|
|
depends_on "zsh" => :optional
|
|
depends_on "bash"
|
|
|
|
conflicts_with "gtk+"
|
|
conflicts_with "qt"
|
|
|
|
def install
|
|
bin.install "custom_require"
|
|
end
|
|
|
|
def caveats; <<~EOS
|
|
don't do this custom_require
|
|
EOS
|
|
end
|
|
|
|
plist_options :startup => false
|
|
|
|
def plist; <<~EOS
|
|
<xml>whatever</xml>
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
system "true"
|
|
system "#{bin}/foo -h"
|
|
end
|
|
end
|