From cee44b3dbded2f9c0a00061059a276374569bc41 Mon Sep 17 00:00:00 2001 From: litruv Date: Tue, 6 Oct 2026 09:21:29 +1100 Subject: [PATCH] Bake wine into the runner image; wine step is now a no-op when present --- .gitea/workflows/build.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 3176524..708c113 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -245,9 +245,15 @@ jobs: - name: Install Wine (NSIS cross-build) run: | set -euo pipefail - # NSIS's makensis.exe is 32-bit, so wine32 is required. The wine64 package - # alone ships only /usr/lib/wine/wine64 (no `wine` on PATH), so install the - # `wine` meta package too. Runner images have a stale apt index, so update first. + # wine + wine32 + wine64 are prebaked in the runner image used on pizzabox, + # so this is normally a no-op. Fallback below covers runners without it. + # NSIS's makensis.exe is 32-bit, so wine32 is required; the wine64 package + # alone ships only /usr/lib/wine/wine64 (no `wine` on PATH). + if command -v wine >/dev/null 2>&1; then + echo "wine already present: $(wine --version)" + exit 0 + fi + sudo dpkg --add-architecture i386 sudo apt-get update sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends wine wine32 wine64