lib/envkey/platform.rb in envkey-1.2.6 vs lib/envkey/platform.rb in envkey-1.2.7

- old
+ new

@@ -35,10 +35,16 @@ "linux" end end def self.arch_part - ARCH == "x86_64" ? "amd64" : "386" + # workaround for mac M1 chip until Go compiler supports it natively + # amd64 seems to work for now + if platform_part == "darwin" && ARCH == "arm" + "amd64" + else + ARCH == "x86_64" ? "amd64" : "386" + end end def self.ext platform_part == "windows" ? ".exe" : "" end \ No newline at end of file