ci: fixed python path
Build Server .exe / build (push) Failing after 2m49s

This commit is contained in:
2026-07-01 14:42:46 +02:00
parent f99ae2570d
commit d967e401b2
+9 -10
View File
@@ -18,6 +18,7 @@ env:
WINEPYTHON: ${{ github.workspace }}/wine-prefix/drive_c/Python312/python.exe
DISPLAY: :99.0
WINEDLLOVERRIDES: "mscoree,mshtml=;winemenubuilder.exe=d"
WINEARCH: win64 # ensure 64-bit prefix
jobs:
build:
@@ -42,14 +43,12 @@ jobs:
- name: Start Xvfb
run: |
Xvfb :99 -screen 0 1024x768x16 &
sleep 2 # give Xvfb a moment
sleep 2
- name: Set up Wine prefix
run: |
mkdir -p "$WINEPREFIX"
# Initialize the prefix without Mono/Gecko timeouts
wineboot --init --update
# Set Windows version to 10 (or your target)
winecfg -v win10
- name: Download Python installer
@@ -60,12 +59,14 @@ jobs:
- name: Install Python in Wine
run: |
wine /tmp/python.exe \
/quiet \
InstallAllUsers=1 \
PrependPath=1 \
Include_test=0
# Removed InstallAllUsers=1 → installs to C:\Python312 (matches WINEPYTHON)
wine /tmp/python.exe /quiet PrependPath=1 Include_test=0
rm /tmp/python.exe
# Verify the installation
echo "Contents of C:\\Python312:"
ls -la "$WINEPREFIX/drive_c/Python312" || echo "Python folder missing!"
echo "Checking python.exe:"
ls -la "$WINEPREFIX/drive_c/Python312/python.exe" || echo "python.exe missing!"
- name: Install Python dependencies
run: |
@@ -107,7 +108,6 @@ jobs:
RELEASE_TAG: rolling-draft
run: |
API="${{ github.api_url }}/repos/${{ github.repository }}"
RESPONSE=$(curl -sS -H "Authorization: token $GITEA_TOKEN" \
"$API/releases/tags/$RELEASE_TAG")
RELEASE_ID=$(echo "$RESPONSE" | jq -r '.id // empty')
@@ -122,7 +122,6 @@ jobs:
"body": "Latest PaperDash server build from commit '"${{ github.sha }}"'. Built on Linux via Wine + PyInstaller. Edit tag, name, and notes before publishing."
}' \
"$API/releases/$RELEASE_ID"
ASSETS=$(curl -sS -H "Authorization: token $GITEA_TOKEN" \
"$API/releases/$RELEASE_ID/assets")
for asset_id in $(echo "$ASSETS" | jq -r '.[].id'); do