Skip to content

Commit

Permalink
Try 4 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Nov 14, 2024
1 parent aeb62af commit e1fd01e
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,8 @@ brews:
url "https://github.com/ddev/ddev.git", branch: "master"
depends_on "go" => :build
depends_on "make" => :build
end
install: |
if build.head?
def install
os = OS.mac? ? "darwin" : "linux"
arch = Hardware::CPU.arm? ? "arm64" : "amd64"
system "mkdir", "-p", "#{bin}"
Expand All @@ -198,13 +197,17 @@ brews:
bash_completion.install ".gotmp/bin/completions/ddev_bash_completion.sh" => "ddev"
zsh_completion.install ".gotmp/bin/completions/ddev_zsh_completion.sh" => "_ddev"
fish_completion.install ".gotmp/bin/completions/ddev_fish_completion.sh" => "ddev.fish"
else
bin.install "ddev"
bash_completion.install "ddev_bash_completion.sh" => "ddev"
zsh_completion.install "ddev_zsh_completion.sh" => "_ddev"
fish_completion.install "ddev_fish_completion.sh" => "ddev.fish"
end
end
def install
bin.install "ddev"
bash_completion.install "ddev_bash_completion.sh" => "ddev"
zsh_completion.install "ddev_zsh_completion.sh" => "_ddev"
fish_completion.install "ddev_fish_completion.sh" => "ddev.fish"
end
test: |
system "#{bin}/ddev --version"
Expand All @@ -227,9 +230,8 @@ brews:
url "https://github.com/ddev/ddev.git", branch: "master"
depends_on "go" => :build
depends_on "make" => :build
end
install: |
if build.head?
def install
os = OS.mac? ? "darwin" : "linux"
arch = Hardware::CPU.arm? ? "arm64" : "amd64"
system "mkdir", "-p", "#{bin}"
Expand All @@ -238,17 +240,19 @@ brews:
bash_completion.install ".gotmp/bin/completions/ddev_bash_completion.sh" => "ddev"
zsh_completion.install ".gotmp/bin/completions/ddev_zsh_completion.sh" => "_ddev"
fish_completion.install ".gotmp/bin/completions/ddev_fish_completion.sh" => "ddev.fish"
else
bin.install "ddev"
bash_completion.install "ddev_bash_completion.sh" => "ddev"
zsh_completion.install "ddev_zsh_completion.sh" => "_ddev"
fish_completion.install "ddev_fish_completion.sh" => "ddev.fish"
end
end
def install
bin.install "ddev"
bash_completion.install "ddev_bash_completion.sh" => "ddev"
zsh_completion.install "ddev_zsh_completion.sh" => "_ddev"
fish_completion.install "ddev_fish_completion.sh" => "ddev.fish"
end
test: |
system "#{bin}/ddev --version"
nfpms:
- maintainer: Randy Fay
license: "Apache 2"
Expand Down

0 comments on commit e1fd01e

Please sign in to comment.