Remove armv7 from stats and README

This commit is contained in:
Alexandre
2025-11-27 09:57:34 +01:00
parent 70e92d6595
commit bea03a3b1e
4 changed files with 120 additions and 251 deletions

View File

@@ -134,12 +134,6 @@ jobs:
if [[ "$SERVICES_LIST" == *"mysql"* ]]; then sed -i "$ADDONSLINE"'a ![MariaDB][mariadb-badge]' README2.md; fi
if [[ "$INGRESS" == "true" ]]; then sed -i "$ADDONSLINE"'a ![ingress][ingress-badge]' README2.md; fi
if [[ "$ARCH_LIST" == *"armv7"* ]]; then
sed -i "$ADDONSLINE"'a ![armv7][armv7-badge]' README2.md
else
sed -i "$ADDONSLINE"'a ![armv7no][armv7no-badge]' README2.md
fi || true
if [[ "$ARCH_LIST" == *"amd64"* ]]; then
sed -i "$ADDONSLINE"'a ![amd64][amd64-badge]' README2.md
else
@@ -202,14 +196,11 @@ jobs:
# Breakdown per arch
# ---------------------------
echo "Breakdown per arch..."
STATS_ARMV7="$(awk '{SUM+=$3}END{print SUM}' Stats2)"
STATS_AMD64="$(awk '{SUM+=$4}END{print SUM}' Stats2)"
STATS_AARCH64="$(awk '{SUM+=$5}END{print SUM}' Stats2)"
STATS_DOWNLOADS="$(( STATS_ARMV7 + STATS_AMD64 + STATS_AARCH64 ))"
STATS_ARMV7="$(awk -v t1="$STATS_ARMV7" -v t4="$STATS_DOWNLOADS" 'BEGIN{printf "%.0f", (t4==0?0:t1/t4*100)}')"
STATS_AMD64="$(awk '{SUM+=$3}END{print SUM}' Stats2)"
STATS_AARCH64="$(awk '{SUM+=$4}END{print SUM}' Stats2)"
STATS_DOWNLOADS="$(( STATS_AMD64 + STATS_AARCH64 ))"
STATS_AMD64="$(awk -v t2="$STATS_AMD64" -v t4="$STATS_DOWNLOADS" 'BEGIN{printf "%.0f", (t4==0?0:t2/t4*100)}')"
STATS_AARCH64="$(awk -v t3="$STATS_AARCH64" -v t4="$STATS_DOWNLOADS" 'BEGIN{printf "%.0f", (t4==0?0:t3/t4*100)}')"
sed -i "s|%%STATS_ARMV7%%|armv7: ${STATS_ARMV7}%|g" README2.md
sed -i "s|%%STATS_AMD64%%|amd64: ${STATS_AMD64}%|g" README2.md
sed -i "s|%%STATS_AARCH64%%|aarch64: ${STATS_AARCH64}%|g" README2.md
echo "... done"