Skip to content

Commit

Permalink
fix(gem): Add aarch64 support (#267)
Browse files Browse the repository at this point in the history
#267

Signed-off-by: Valentin Kiselev <[email protected]>
  • Loading branch information
mrexox committed Jun 14, 2022
1 parent 3e6c8ec commit 862d1c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packaging/rubygems/bin/lefthook
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ platform = Gem::Platform.new(RUBY_PLATFORM)
arch =
case platform.cpu.sub(/\Auniversal\./, '')
when /\Aarm64/ then "arm64" # Apple reports arm64e on M1 macs
when /aarch64/ then "arm64"
when "x86_64" then "amd64"
when "x64" then "amd64" # Windows with MINGW64 reports RUBY_PLATFORM as "x64-mingw32"
else raise "Unknown architecture: #{platform.cpu}"
Expand Down

0 comments on commit 862d1c3

Please sign in to comment.