diff --git a/distros/buildx.sh b/distros/buildx.sh index 86cbbb41..910c9fa5 100644 --- a/distros/buildx.sh +++ b/distros/buildx.sh @@ -15,8 +15,6 @@ function print_time_cost(){ " 共历时" systime()-'$begin_time' "秒"; }' } -PLAT0="--platform linux/amd64,linux/arm64,linux/arm" -test "$type" != "app" && PLAT0="--platform linux/amd64,linux/arm64" #app:none-armv7 function doBuildx(){ local tag=$1 local dockerfile=$2 @@ -89,6 +87,10 @@ type=$1; dist=$2 dver=$3; latest=$4; test -z "$dver" && dver=errVer tag=$type-$dist-$dver +# PLAT0 +PLAT0="--platform linux/amd64,linux/arm64,linux/arm" +test "$type" == "app" && PLAT0="--platform linux/amd64,linux/arm64" #app:none-armv7 + # :> /tmp/.timecost #only clear @gitac begin_time="`gawk 'BEGIN{print systime()}'`"; echo "[$tag]" $begin_time >> /tmp/.timecost case "$dist" in