Skip to content

Commit 71dc554

Browse files
mapitmanCopilot
andauthored
debian: add Wine with proper 64-bit prefix initialization (#36)
Install wine and wine32:i386 (with i386 multiarch enabled), then initialize a 64-bit Wine prefix via wineboot --init. Without explicit initialization, syswow64 is left empty and 32-bit installers fail with "could not load kernel32.dll, status c0000135". Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 2d29394 commit 71dc554

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

debian/install-desktop-packages

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ curl -sS https://debian.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc |
1313

1414
echo "deb https://debian.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | sudo tee /etc/apt/sources.list.d/debian.griffo.io.list
1515

16+
# Enable 32-bit architecture (required for wine32)
17+
sudo dpkg --add-architecture i386
18+
1619
# Update package repos
1720
sudo apt-get update
1821

@@ -39,8 +42,17 @@ pipx \
3942
qemu-system-x86 \
4043
qemu-utils \
4144
virt-manager \
45+
wine \
46+
wine32:i386 \
4247
xclip
4348

49+
# Initialize Wine prefix (64-bit with 32-bit WoW64 support)
50+
# Without explicit initialization, the syswow64 directory is left empty and
51+
# 32-bit apps fail with "could not load kernel32.dll, status c0000135".
52+
if [ ! -d "$HOME/.wine" ]; then
53+
WINEARCH=win64 WINEDEBUG=-all wineboot --init
54+
fi
55+
4456
# Pango 1.56.x workaround: when FONTCONFIG_FILE is unset (or set to the default
4557
# /etc/fonts/fonts.conf path), Pango's font-loading thread pool hits a stack
4658
# corruption bug processing cache-11 entries for variable fonts (Cascadia Code,

0 commit comments

Comments
 (0)