Skip to content

Commit

Permalink
Update template
Browse files Browse the repository at this point in the history
  • Loading branch information
petrgazarov committed Oct 9, 2023
1 parent 62349b8 commit 5dc3e1b
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/scripts/salami_tap_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@ class Salami < Formula
end

def install
bin.install Dir["*"]
if Hardware::CPU.intel?
filename = File.basename("${SALAMI_DARWIN_X64_URL}")
bin.install filename => "salami"
end

if Hardware::CPU.arm?
filename = File.basename("${SALAMI_DARWIN_ARM64_URL}")
bin.install filename => "salami"
end
end
end

Expand All @@ -35,7 +43,15 @@ def install
end

def install
bin.install Dir["*"]
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
filename = File.basename("${SALAMI_LINUX_ARM64_URL}")
bin.install filename => "salami"
end

if Hardware::CPU.intel?
filename = File.basename("${SALAMI_LINUX_X64_URL}")
bin.install filename => "salami"
end
end
end

Expand Down

0 comments on commit 5dc3e1b

Please sign in to comment.