diff --git a/src/gmc_con.erl b/src/gmc_con.erl index 7d10351..c8e9b90 100644 --- a/src/gmc_con.erl +++ b/src/gmc_con.erl @@ -283,11 +283,13 @@ platform_dir() -> {unix, linux} -> "linux_x86_64"; {unix, darwin} -> - case erlang:system_info(system_architecture) of - "aarch64-" ++ _ -> + case string:trim(os:cmd("uname -m")) of + "arm64" -> "mac_arm64"; + "x86_64" -> + "mac_x86_64"; Other -> - ok = log(info, "system_architecture: ~p", [Other]), + ok = log(info, "uname -m: ~p", [Other]), "mac_x86_64" end; {win32, nt} ->