forked from freeleaps/freeleaps-pub
Update for add arm64 as default arch when auto detect
This commit is contained in:
parent
736d426cc1
commit
fd9c2a0269
@ -2635,7 +2635,7 @@ devbox_init_parse_requirements() {
|
|||||||
detected_arch=$(uname -m)
|
detected_arch=$(uname -m)
|
||||||
if [ "$detected_arch" = "x86_64" ]; then
|
if [ "$detected_arch" = "x86_64" ]; then
|
||||||
current_arch="amd64"
|
current_arch="amd64"
|
||||||
elif [ "$detected_arch" = "aarch64" ]; then
|
elif [ "$detected_arch" = "aarch64" ] || [ "$detected_arch" = "arm64" ] ; then
|
||||||
current_arch="arm64"
|
current_arch="arm64"
|
||||||
else
|
else
|
||||||
echo "ERROR: Unsupported architecture detected: $detected_arch"
|
echo "ERROR: Unsupported architecture detected: $detected_arch"
|
||||||
@ -2645,6 +2645,7 @@ devbox_init_parse_requirements() {
|
|||||||
add_arg '--arch' "$current_arch"
|
add_arg '--arch' "$current_arch"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ -z "$(get_arg '--devbox-container-name')" ]; then
|
if [ -z "$(get_arg '--devbox-container-name')" ]; then
|
||||||
add_arg '--devbox-container-name' "devbox"
|
add_arg '--devbox-container-name' "devbox"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user