Bake wine into the runner image; wine step is now a no-op when present
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user