Restore wine32 for NSIS: wine64 package provides no wine command on PATH
This commit is contained in:
@@ -244,14 +244,15 @@ jobs:
|
|||||||
- name: Install Wine (NSIS cross-build)
|
- name: Install Wine (NSIS cross-build)
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
# electron-builder spawns `wine` by name; wine64 alone is enough, wine32
|
# NSIS's makensis.exe is 32-bit, so wine32 is required. The wine64 package
|
||||||
# only adds a slow i386 package index for no benefit here.
|
# alone ships only /usr/lib/wine/wine64 (no `wine` on PATH), so install the
|
||||||
# Runner images have a stale apt index, so wine64 is not locatable without an update.
|
# `wine` meta package too. Runner images have a stale apt index, so update first.
|
||||||
|
sudo dpkg --add-architecture i386
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends wine64
|
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends wine wine32 wine64
|
||||||
|
|
||||||
if ! command -v wine >/dev/null 2>&1; then
|
if ! command -v wine >/dev/null 2>&1; then
|
||||||
WINE64_BIN=$(command -v wine64)
|
WINE64_BIN=$(command -v wine64 || echo /usr/lib/wine/wine64)
|
||||||
echo "No wine binary; linking wine64 -> /usr/local/bin/wine (${WINE64_BIN})"
|
echo "No wine binary; linking wine64 -> /usr/local/bin/wine (${WINE64_BIN})"
|
||||||
sudo ln -sf "${WINE64_BIN}" /usr/local/bin/wine
|
sudo ln -sf "${WINE64_BIN}" /usr/local/bin/wine
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user