Skip to content

Commit

Permalink
Try 9, simplest of all [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Nov 15, 2024
1 parent 10ec22d commit 8195c9a
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,9 @@ brews:
if build.head?
os = OS.mac? ? "darwin" : "linux"
arch = Hardware::CPU.arm? ? "arm64" : "amd64"
# Get the git commit SHA for versioning
git_hash = Utils.git_head
version = "HEAD-" + git_hash[0..7]
system "make", "VERSION=#{version}"
system "cp", ".gotmp/bin/#{os}_#{arch}/ddev", "#{bin}/ddev"
system "mkdir", "-p", "#{bin}"
system "make", "build", "completions"
system "cp", ".gotmp/bin/" + os + "_" + arch + "/ddev", "#{bin}/ddev"
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"
Expand Down Expand Up @@ -236,12 +233,9 @@ brews:
if build.head?
os = OS.mac? ? "darwin" : "linux"
arch = Hardware::CPU.arm? ? "arm64" : "amd64"
# Get the git commit SHA for versioning
git_hash = Utils.git_head
version = "HEAD-" + git_hash[0..7]
system "make", "VERSION=#{version}"
system "cp", ".gotmp/bin/#{os}_#{arch}/ddev", "#{bin}/ddev"
system "mkdir", "-p", "#{bin}"
system "make", "build", "completions"
system "cp", ".gotmp/bin/" + os + "_" + arch + "/ddev", "#{bin}/ddev"
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"
Expand All @@ -255,6 +249,7 @@ brews:
test: |
system "#{bin}/ddev --version"
nfpms:
- maintainer: Randy Fay
license: "Apache 2"
Expand Down

0 comments on commit 8195c9a

Please sign in to comment.