Ensure wine binary exists for Windows NSIS cross-builds.
All checks were successful
All checks were successful
This commit is contained in:
@@ -251,9 +251,23 @@ 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 not enough.
|
||||||
sudo dpkg --add-architecture i386
|
sudo dpkg --add-architecture i386
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y --no-install-recommends wine64 wine32
|
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||||
|
wine \
|
||||||
|
wine64 \
|
||||||
|
wine32 \
|
||||||
|
|| sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends wine64
|
||||||
|
|
||||||
|
if ! command -v wine >/dev/null 2>&1; then
|
||||||
|
WINE64_BIN=$(command -v wine64)
|
||||||
|
echo "No wine binary; linking wine64 -> /usr/local/bin/wine (${WINE64_BIN})"
|
||||||
|
sudo ln -sf "${WINE64_BIN}" /usr/local/bin/wine
|
||||||
|
fi
|
||||||
|
|
||||||
|
command -v wine
|
||||||
|
wine --version
|
||||||
|
|
||||||
- name: Install dependencies (root)
|
- name: Install dependencies (root)
|
||||||
run: npm ci --prefer-offline
|
run: npm ci --prefer-offline
|
||||||
|
|||||||
Reference in New Issue
Block a user