fix(ci): add native NSIS installer compilation and libpython3 dev dependencies for Linux runner
CI Test Suite / Run Component Tests & Pipeline Verification (push) Successful in 1m45s
Release Binaries & Packages / Build & Release Standalone Binaries (Linux & Windows Cross-Compilation) (push) Successful in 1m10s

This commit is contained in:
2026-09-26 13:33:19 +02:00
parent 911014fae7
commit 17c1791b7d
4 changed files with 120 additions and 20 deletions
+3 -19
View File
@@ -26,30 +26,14 @@ jobs:
- name: Install System and Cross-Compilation Build Dependencies
run: |
if command -v apt-get >/dev/null 2>&1; then
echo "[*] Installing Python shared libraries, headers, Wine, and build dependencies..."
echo "[*] Installing Python shared libraries, headers, NSIS, and build dependencies..."
SUDO=""
if [ "$(id -u)" -ne 0 ] && command -v sudo >/dev/null 2>&1; then
SUDO="sudo"
fi
$SUDO dpkg --add-architecture i386 || true
$SUDO apt-get update && $SUDO apt-get install -y --no-install-recommends \
python3-dev libpython3-dev python3-all-dev "libpython3.*" \
wine wine64 innoextract curl tar gzip || true
# Setup Inno Setup compiler under Wine if not present
if ! command -v iscc >/dev/null 2>&1 && command -v innoextract >/dev/null 2>&1; then
echo "[*] Setting up portable Inno Setup 6 compiler for Wine..."
mkdir -p /tmp/inno_setup
curl -fsSL https://files.jrsoftware.org/is/6/innosetup-6.2.2.exe -o /tmp/inno_setup/innosetup.exe || true
if [ -f /tmp/inno_setup/innosetup.exe ]; then
$SUDO innoextract -d /opt/innosetup /tmp/inno_setup/innosetup.exe || true
if [ -f /opt/innosetup/app/ISCC.exe ]; then
$SUDO sh -c 'printf "#!/bin/sh\nWINEDEBUG=-all wine /opt/innosetup/app/ISCC.exe \"\$@\"\n" > /usr/local/bin/iscc'
$SUDO chmod +x /usr/local/bin/iscc
echo "[+] Inno Setup compiler iscc configured successfully at /usr/local/bin/iscc"
fi
fi
fi
python3-dev libpython3-dev libpython3.9 libpython3.9-dev libpython3.10 libpython3.10-dev libpython3.11 libpython3.11-dev "libpython3.*" \
nsis curl tar gzip zip || 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