Update system arch discovery method
This commit is contained in:
parent
5e3e8c9eae
commit
56be96c4f3
@ -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} ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user