Update for add arm64 as default arch when auto detect

This commit is contained in:
timqiu 2025-03-17 09:14:47 +08:00
parent 736d426cc1
commit fd9c2a0269

View File

@ -2635,7 +2635,7 @@ devbox_init_parse_requirements() {
detected_arch=$(uname -m)
if [ "$detected_arch" = "x86_64" ]; then
current_arch="amd64"
elif [ "$detected_arch" = "aarch64" ]; then
elif [ "$detected_arch" = "aarch64" ] || [ "$detected_arch" = "arm64" ] ; then
current_arch="arm64"
else
echo "ERROR: Unsupported architecture detected: $detected_arch"
@ -2645,6 +2645,7 @@ devbox_init_parse_requirements() {
add_arg '--arch' "$current_arch"
fi
if [ -z "$(get_arg '--devbox-container-name')" ]; then
add_arg '--devbox-container-name' "devbox"
fi