From 323bd6d56b42b01f987a9c4bcfb4051fa32dd417 Mon Sep 17 00:00:00 2001 From: Lyndon Date: Fri, 12 Dec 2025 20:38:59 +0800 Subject: [PATCH] chore: fix reproducible build on mac(arm64) --- scripts/reproducible_build_docker | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/reproducible_build_docker b/scripts/reproducible_build_docker index 6f802bd..98c31a1 100755 --- a/scripts/reproducible_build_docker +++ b/scripts/reproducible_build_docker @@ -55,9 +55,9 @@ else TASKS+=" build " fi -$DOCKER run --rm $DOCKER_RUN_ARGS -v `pwd`:/code $DOCKER_IMAGE make CUSTOM_RUSTFLAGS= $TASKS +$DOCKER run --platform=linux/amd64 --rm $DOCKER_RUN_ARGS -v `pwd`:/code $DOCKER_IMAGE make CUSTOM_RUSTFLAGS= $TASKS # Reset file ownerships for all files docker might touch -$DOCKER run --rm $DOCKER_RUN_ARGS -e UID=`id -u` -e GID=`id -g` -v `pwd`:/code $DOCKER_IMAGE bash -c 'chown -R -f $UID:$GID checksums.txt build target' +$DOCKER run --platform=linux/amd64 --rm $DOCKER_RUN_ARGS -e UID=`id -u` -e GID=`id -g` -v `pwd`:/code $DOCKER_IMAGE bash -c 'chown -R -f $UID:$GID checksums.txt build target' if [[ "${UPDATE}" = "yes" ]]; then echo "${CHECKSUM_FILE_PATH} file is updated with latest binary hashes!"