From 435703ab9d33d7fdeb854746092726e50d943b4f Mon Sep 17 00:00:00 2001 From: Imrayya Date: Wed, 1 Jul 2026 11:46:12 +0000 Subject: [PATCH] ci: install Wine directly instead of third-party action - Replaced egor-tensin/setup-wine with manual Wine installation - Uses WineHQ repo for winehq-stable on Ubuntu - Should work with Gitea's action registry --- .gitea/workflows/build-exe.yml | 36 ++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/build-exe.yml b/.gitea/workflows/build-exe.yml index c4de989..dfb8eb7 100644 --- a/.gitea/workflows/build-exe.yml +++ b/.gitea/workflows/build-exe.yml @@ -21,26 +21,32 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Set up Wine - uses: egor-tensin/setup-wine@v2 - with: - prefix: /home/runner/wine-prefix - version: "9.0" - - - name: Configure Wine prefix (64-bit) + - name: Install Wine run: | - export WINEPREFIX=/home/runner/wine-prefix + sudo dpkg --add-architecture i386 + sudo mkdir -pm /etc/apt/keyrings + sudo wget -qO /etc/apt/keyrings/winehq-archive.key \ + https://dl.winehq.org/wine-builds/winehq.key + sudo wget -qO /etc/apt/sources.list.d/winehq.list \ + https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources + sudo apt-get update + sudo apt-get install --install-recommends winehq-stable -y + + - name: Set up Wine prefix + run: | + export WINEPREFIX=$HOME/wine-prefix + mkdir -p "$WINEPREFIX" wineboot --init - wine reg add \ - "HKLM\\Software\\Wine\\DllOverrides" \ - /v "*" /t REG_MULTI_SZ /d "" /f - - name: Set up Python in Wine + - name: Download Python installer run: | - export WINEPREFIX=/home/runner/wine-prefix wget -q \ https://www.python.org/ftp/python/3.12.4/python-3.12.4-amd64.exe \ -O /tmp/python.exe + + - name: Install Python in Wine + run: | + export WINEPREFIX=$HOME/wine-prefix wine /tmp/python.exe \ /quiet \ InstallAllUsers=1 \ @@ -50,8 +56,8 @@ jobs: - name: Add Python to PATH run: | - echo "/home/runner/wine-prefix/drive_c/Python312" >> $GITHUB_PATH - echo "${WINEPREFIX}/drive_c/Python312/Scripts" >> $GITHUB_PATH + echo "$HOME/wine-prefix/drive_c/Python312" >> $GITHUB_PATH + echo "$HOME/wine-prefix/drive_c/Python312/Scripts" >> $GITHUB_PATH - name: Install Python dependencies run: |