fix(ci): dynamically install runner python shared lib and nsis for reliable installer generation
CI Test Suite / Run Component Tests & Pipeline Verification (push) Successful in 1m47s
Release Binaries & Packages / Build & Release Standalone Binaries (Linux & Windows Cross-Compilation) (push) Successful in 1m9s

This commit is contained in:
2026-09-26 13:38:04 +02:00
parent 17c1791b7d
commit 96126cdf84
3 changed files with 11 additions and 9 deletions
+5 -3
View File
@@ -31,9 +31,11 @@ jobs:
if [ "$(id -u)" -ne 0 ] && command -v sudo >/dev/null 2>&1; then if [ "$(id -u)" -ne 0 ] && command -v sudo >/dev/null 2>&1; then
SUDO="sudo" SUDO="sudo"
fi fi
$SUDO apt-get update && $SUDO apt-get install -y --no-install-recommends \ $SUDO apt-get update || true
python3-dev libpython3-dev libpython3.9 libpython3.9-dev libpython3.10 libpython3.10-dev libpython3.11 libpython3.11-dev "libpython3.*" \ $SUDO apt-get install -y --no-install-recommends \
nsis curl tar gzip zip || true build-essential nsis curl tar gzip zip python3-dev libpython3-dev || 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
fi fi
python3 compilation/ensure_pip.py 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 python3 -m pip install --upgrade pip --break-system-packages 2>/dev/null || python3 -m pip install --upgrade pip 2>/dev/null || true
+3 -3
View File
@@ -1,7 +1,7 @@
!include "MUI2.nsh" !include "MUI2.nsh"
Name "LOGAR Client" Name "LOGAR Client"
OutFile "..\dist\LOGAR-Client-Setup.exe" OutFile "../dist/LOGAR-Client-Setup.exe"
InstallDir "$PROGRAMFILES64\LOGAR" InstallDir "$PROGRAMFILES64\LOGAR"
RequestExecutionLevel admin RequestExecutionLevel admin
@@ -17,8 +17,8 @@ RequestExecutionLevel admin
Section "Install" Section "Install"
SetOutPath "$INSTDIR" SetOutPath "$INSTDIR"
File "..\dist\Win_Client.exe" File "../dist/Win_Client.exe"
File "..\compilation\nssm.exe" File "../compilation/nssm.exe"
CreateDirectory "$COMMONAPPDATA\LOGAR" CreateDirectory "$COMMONAPPDATA\LOGAR"
+3 -3
View File
@@ -1,7 +1,7 @@
!include "MUI2.nsh" !include "MUI2.nsh"
Name "LOGAR Server" Name "LOGAR Server"
OutFile "..\dist\LOGAR-Server-Setup.exe" OutFile "../dist/LOGAR-Server-Setup.exe"
InstallDir "$PROGRAMFILES64\LOGAR-Server" InstallDir "$PROGRAMFILES64\LOGAR-Server"
RequestExecutionLevel admin RequestExecutionLevel admin
@@ -17,8 +17,8 @@ RequestExecutionLevel admin
Section "Install" Section "Install"
SetOutPath "$INSTDIR" SetOutPath "$INSTDIR"
File "..\dist\Server.exe" File "../dist/Server.exe"
File "..\compilation\nssm.exe" File "../compilation/nssm.exe"
CreateDirectory "$COMMONAPPDATA\LOGAR-Server" CreateDirectory "$COMMONAPPDATA\LOGAR-Server"