diff --git a/packaging/rubygems/bin/lefthook b/packaging/rubygems/bin/lefthook index 47647d67..7873a32c 100755 --- a/packaging/rubygems/bin/lefthook +++ b/packaging/rubygems/bin/lefthook @@ -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}"