mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-10 03:47:03 +02:00
4936929ddd
so it better aligns with brew audit Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
77 lines
1.7 KiB
Ruby
77 lines
1.7 KiB
Ruby
# typed: false
|
|
# frozen_string_literal: true
|
|
|
|
# This file was generated by GoReleaser. DO NOT EDIT.
|
|
require_relative "custom_download_strategy"
|
|
class CustomRequire < Formula
|
|
desc "Run pipe test formula and FOO=foo_is_bar"
|
|
homepage "https://github.com/goreleaser"
|
|
version "1.0.1"
|
|
|
|
depends_on "bash" => "3.2.57"
|
|
depends_on "fish" => :optional
|
|
depends_on "zsh" => :optional
|
|
|
|
on_macos do
|
|
if Hardware::CPU.intel?
|
|
url "https://dummyhost/download/v1.0.1/bin.tar.gz", using: CustomDownloadStrategy
|
|
sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
|
|
|
def install
|
|
bin.install "custom_require_darwin_amd64 => custom_require"
|
|
end
|
|
end
|
|
if Hardware::CPU.arm?
|
|
url "https://dummyhost/download/v1.0.1/bin.tar.gz", using: CustomDownloadStrategy
|
|
sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
|
|
|
def install
|
|
bin.install "custom_require_darwin_arm64 => custom_require"
|
|
end
|
|
end
|
|
end
|
|
|
|
on_linux do
|
|
if Hardware::CPU.intel?
|
|
url "https://dummyhost/download/v1.0.1/bin.tar.gz", using: CustomDownloadStrategy
|
|
sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
|
|
|
def install
|
|
bin.install "custom_require_linux_amd64 => custom_require"
|
|
end
|
|
end
|
|
end
|
|
|
|
conflicts_with "gtk+"
|
|
conflicts_with "qt"
|
|
|
|
def post_install
|
|
system "echo"
|
|
touch "/tmp/hi"
|
|
end
|
|
|
|
def caveats
|
|
<<~EOS
|
|
don't do this custom_require
|
|
EOS
|
|
end
|
|
|
|
plist_options startup: false
|
|
|
|
def plist
|
|
<<~EOS
|
|
<xml>whatever</xml>
|
|
EOS
|
|
end
|
|
|
|
service do
|
|
run foo/bar
|
|
keep_alive true
|
|
end
|
|
|
|
test do
|
|
system "true"
|
|
system "#{bin}/foo", "-h"
|
|
end
|
|
end
|