This commit is contained in:
@@ -18,6 +18,7 @@ env:
|
|||||||
WINEPYTHON: ${{ github.workspace }}/wine-prefix/drive_c/Python312/python.exe
|
WINEPYTHON: ${{ github.workspace }}/wine-prefix/drive_c/Python312/python.exe
|
||||||
DISPLAY: :99.0
|
DISPLAY: :99.0
|
||||||
WINEDLLOVERRIDES: "mscoree,mshtml=;winemenubuilder.exe=d"
|
WINEDLLOVERRIDES: "mscoree,mshtml=;winemenubuilder.exe=d"
|
||||||
|
WINEARCH: win64 # ensure 64-bit prefix
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -42,14 +43,12 @@ jobs:
|
|||||||
- name: Start Xvfb
|
- name: Start Xvfb
|
||||||
run: |
|
run: |
|
||||||
Xvfb :99 -screen 0 1024x768x16 &
|
Xvfb :99 -screen 0 1024x768x16 &
|
||||||
sleep 2 # give Xvfb a moment
|
sleep 2
|
||||||
|
|
||||||
- name: Set up Wine prefix
|
- name: Set up Wine prefix
|
||||||
run: |
|
run: |
|
||||||
mkdir -p "$WINEPREFIX"
|
mkdir -p "$WINEPREFIX"
|
||||||
# Initialize the prefix without Mono/Gecko timeouts
|
|
||||||
wineboot --init --update
|
wineboot --init --update
|
||||||
# Set Windows version to 10 (or your target)
|
|
||||||
winecfg -v win10
|
winecfg -v win10
|
||||||
|
|
||||||
- name: Download Python installer
|
- name: Download Python installer
|
||||||
@@ -60,12 +59,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Python in Wine
|
- name: Install Python in Wine
|
||||||
run: |
|
run: |
|
||||||
wine /tmp/python.exe \
|
# Removed InstallAllUsers=1 → installs to C:\Python312 (matches WINEPYTHON)
|
||||||
/quiet \
|
wine /tmp/python.exe /quiet PrependPath=1 Include_test=0
|
||||||
InstallAllUsers=1 \
|
|
||||||
PrependPath=1 \
|
|
||||||
Include_test=0
|
|
||||||
rm /tmp/python.exe
|
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
|
- name: Install Python dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -107,7 +108,6 @@ jobs:
|
|||||||
RELEASE_TAG: rolling-draft
|
RELEASE_TAG: rolling-draft
|
||||||
run: |
|
run: |
|
||||||
API="${{ github.api_url }}/repos/${{ github.repository }}"
|
API="${{ github.api_url }}/repos/${{ github.repository }}"
|
||||||
|
|
||||||
RESPONSE=$(curl -sS -H "Authorization: token $GITEA_TOKEN" \
|
RESPONSE=$(curl -sS -H "Authorization: token $GITEA_TOKEN" \
|
||||||
"$API/releases/tags/$RELEASE_TAG")
|
"$API/releases/tags/$RELEASE_TAG")
|
||||||
RELEASE_ID=$(echo "$RESPONSE" | jq -r '.id // empty')
|
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."
|
"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"
|
"$API/releases/$RELEASE_ID"
|
||||||
|
|
||||||
ASSETS=$(curl -sS -H "Authorization: token $GITEA_TOKEN" \
|
ASSETS=$(curl -sS -H "Authorization: token $GITEA_TOKEN" \
|
||||||
"$API/releases/$RELEASE_ID/assets")
|
"$API/releases/$RELEASE_ID/assets")
|
||||||
for asset_id in $(echo "$ASSETS" | jq -r '.[].id'); do
|
for asset_id in $(echo "$ASSETS" | jq -r '.[].id'); do
|
||||||
|
|||||||
Reference in New Issue
Block a user