fix(ci): dynamically install runner python shared lib and nsis for reliable installer generation
This commit is contained in:
@@ -31,9 +31,11 @@ jobs:
|
||||
if [ "$(id -u)" -ne 0 ] && command -v sudo >/dev/null 2>&1; then
|
||||
SUDO="sudo"
|
||||
fi
|
||||
$SUDO apt-get update && $SUDO apt-get install -y --no-install-recommends \
|
||||
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
|
||||
$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
|
||||
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
|
||||
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
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
!include "MUI2.nsh"
|
||||
|
||||
Name "LOGAR Client"
|
||||
OutFile "..\dist\LOGAR-Client-Setup.exe"
|
||||
OutFile "../dist/LOGAR-Client-Setup.exe"
|
||||
InstallDir "$PROGRAMFILES64\LOGAR"
|
||||
RequestExecutionLevel admin
|
||||
|
||||
@@ -17,8 +17,8 @@ RequestExecutionLevel admin
|
||||
|
||||
Section "Install"
|
||||
SetOutPath "$INSTDIR"
|
||||
File "..\dist\Win_Client.exe"
|
||||
File "..\compilation\nssm.exe"
|
||||
File "../dist/Win_Client.exe"
|
||||
File "../compilation/nssm.exe"
|
||||
|
||||
CreateDirectory "$COMMONAPPDATA\LOGAR"
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
!include "MUI2.nsh"
|
||||
|
||||
Name "LOGAR Server"
|
||||
OutFile "..\dist\LOGAR-Server-Setup.exe"
|
||||
OutFile "../dist/LOGAR-Server-Setup.exe"
|
||||
InstallDir "$PROGRAMFILES64\LOGAR-Server"
|
||||
RequestExecutionLevel admin
|
||||
|
||||
@@ -17,8 +17,8 @@ RequestExecutionLevel admin
|
||||
|
||||
Section "Install"
|
||||
SetOutPath "$INSTDIR"
|
||||
File "..\dist\Server.exe"
|
||||
File "..\compilation\nssm.exe"
|
||||
File "../dist/Server.exe"
|
||||
File "../compilation/nssm.exe"
|
||||
|
||||
CreateDirectory "$COMMONAPPDATA\LOGAR-Server"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user