ci(release): enhance Debian package installation loop and makensis binary resolution
CI Test Suite / Run Component Tests & Pipeline Verification (push) Successful in 1m35s
Release Binaries & Packages / Build & Release Standalone Binaries (Linux & Windows Cross-Compilation) (push) Successful in 1m38s

This commit is contained in:
2026-09-26 13:49:58 +02:00
parent d025689193
commit b8069ee66b
2 changed files with 20 additions and 8 deletions
+10 -4
View File
@@ -31,11 +31,17 @@ jobs:
if [ "$(id -u)" -ne 0 ] && command -v sudo >/dev/null 2>&1; then
SUDO="sudo"
fi
$SUDO apt-get update || true
$SUDO apt-get install -y --no-install-recommends \
build-essential nsis curl tar gzip zip python3-dev libpython3-dev || true
export DEBIAN_FRONTEND=noninteractive
$SUDO apt-get update -y || true
PY_VER=$(python3 -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')" 2>/dev/null || echo "3.9")
$SUDO apt-get install -y --no-install-recommends "libpython${PY_VER}" "libpython${PY_VER}-dev" "python${PY_VER}-dev" || true
echo "[*] Detected Python version: ${PY_VER}"
for pkg in nsis "libpython${PY_VER}" "libpython${PY_VER}-dev" "python${PY_VER}-dev" python3-dev libpython3-dev build-essential gcc make curl tar gzip zip unzip; do
$SUDO apt-get install -y --no-install-recommends "$pkg" || true
done
echo "[*] Verifying makensis:"
which makensis || echo "makensis not in PATH"
echo "[*] Verifying libpython shared library:"
find /usr/lib /usr/local/lib -name "libpython*.so*" 2>/dev/null || true
fi
python3 compilation/ensure_pip.py
python3 -m pip install --upgrade pip --break-system-packages 2>/dev/null || python3 -m pip install --upgrade pip 2>/dev/null || true