diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 1ae74ef..e08dbb6 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -176,19 +176,11 @@ jobs: fi echo "APK: $APK ($(wc -c < "$APK") bytes)" - if command -v unzip >/dev/null 2>&1; then - LISTADO=$(unzip -Z1 "$APK") - elif command -v python3 >/dev/null 2>&1; then - LISTADO=$(python3 - "$APK" <<'PYZIP' -import zipfile, sys -for nombre in zipfile.ZipFile(sys.argv[1]).namelist(): - print(nombre) -PYZIP - ) - else - echo "Ni unzip ni python3 disponibles: no se puede inspeccionar el APK." + if ! command -v unzip >/dev/null 2>&1; then + echo "unzip no esta disponible: no se puede inspeccionar el APK." exit 1 fi + LISTADO=$(unzip -Z1 "$APK") if [ -z "$LISTADO" ]; then echo "El listado del APK salio vacio; la inspeccion no es fiable."