mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-10 03:47:03 +02:00
4c477b5cd1
properly indent brews.post_install block, and also fix indent on newly added brews.service block. closes #2980 Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
63 lines
1.3 KiB
Plaintext
63 lines
1.3 KiB
Plaintext
# typed: false
|
|
# frozen_string_literal: true
|
|
|
|
# This file was generated by GoReleaser. DO NOT EDIT.
|
|
class CustomDownloadStrategy < Formula
|
|
desc "A run pipe test formula and FOO=foo_is_bar"
|
|
homepage "https://github.com/goreleaser"
|
|
version "1.0.1"
|
|
depends_on :macos
|
|
|
|
on_macos do
|
|
url "https://dummyhost/download/v1.0.1/bin.tar.gz", :using => GitHubPrivateRepositoryReleaseDownloadStrategy
|
|
sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
|
|
|
def install
|
|
bin.install "custom_download_strategy"
|
|
end
|
|
|
|
if Hardware::CPU.arm?
|
|
def caveats
|
|
<<~EOS
|
|
The darwin_arm64 architecture is not supported for the CustomDownloadStrategy
|
|
formula at this time. The darwin_amd64 binary may work in compatibility
|
|
mode, but it might not be fully supported.
|
|
EOS
|
|
end
|
|
end
|
|
end
|
|
|
|
depends_on "zsh" => :optional
|
|
depends_on "bash"
|
|
|
|
conflicts_with "gtk+"
|
|
conflicts_with "qt"
|
|
|
|
def post_install
|
|
system "echo"
|
|
system "touch" "/tmp/hi"
|
|
end
|
|
|
|
def caveats; <<~EOS
|
|
don't do this custom_download_strategy
|
|
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
|