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