Fix the issue of failed compilation of ARM images

This commit is contained in:
Liujian
2025-06-26 18:24:06 +08:00
parent 88bf7d0244
commit 972f072346
+3 -1
View File
@@ -29,9 +29,11 @@ VERSION=$(gen_version)
SYS_ARCH=$(arch) SYS_ARCH=$(arch)
echo "SYS_ARCH: ${SYS_ARCH}"
echo "ARCH: ${ARCH}"
if [[ (${SYS_ARCH} == "aarch64" || ${SYS_ARCH} == "arm64") && $ARCH == "amd64" ]];then if [[ (${SYS_ARCH} == "aarch64" || ${SYS_ARCH} == "arm64") && $ARCH == "amd64" ]];then
OPTIONS="--platform=linux/amd64" OPTIONS="--platform=linux/amd64"
elif [[ ${SYS_ARCH} == "amd64" && $ARCH == "arm64" ]];then elif [[ (${SYS_ARCH} == "amd64" || ${SYS_ARCH} == "x86_64") && $ARCH == "arm64" ]];then
OPTIONS="--platform=linux/arm64" OPTIONS="--platform=linux/arm64"
fi fi