Only support cross-building with Docker

This commit is contained in:
Joshua M. Boniface 2020-03-23 15:00:41 -04:00
parent c61e95d117
commit 163cf223aa

View File

@ -34,13 +34,17 @@ list_platforms() {
}
do_build_native() {
if [[ $( dpkg --print-architecture | head -1 ) != "${PLATFORM##*.}" ]]; then
echo "Cross-building is not supported for native builds, use 'docker' builds on amd64 for cross-building."
exit 1
fi
export IS_DOCKER=NO
deployment/build.${PLATFORM}
}
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"
echo "Docker-based builds only support amd64-based cross-building; use a 'native' build instead."
exit 1
fi
if [[ ! -f deployment/Dockerfile.${PLATFORM} ]]; then