fix(ci): add native NSIS installer compilation and libpython3 dev dependencies for Linux runner
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user