2
0
Эх сурвалжийг харах

Only support Docker builds on amd64

Joshua M. Boniface 5 жил өмнө
parent
commit
c61e95d117
1 өөрчлөгдсөн 4 нэмэгдсэн , 0 устгасан
  1. 4 0
      build.sh

+ 4 - 0
build.sh

@@ -39,6 +39,10 @@ do_build_native() {
 }
 
 do_build_docker() {
+    if ! dpkg --print-architecture | grep -q 'amd64'; then
+        echo "Docker-based builds only support amd64-based cross-building; use a native build instead"
+        exit 1
+    fi
     if [[ ! -f deployment/Dockerfile.${PLATFORM} ]]; then
         echo "Missing Dockerfile for platform ${PLATFORM}"
         exit 1