Skip to content

Commit

Permalink
windows-gnu: Use latest stable wine
Browse files Browse the repository at this point in the history
```
0009:err:module:import_dll Library bcryptprimitives.dll (which is needed by L"Z:\\tmp\\test-gcc\\rust\\target\\i686-pc-windows-gnu\\debug\\rust-test.exe") not found
0009:err:module:LdrInitializeThunk Importing dlls for L"Z:\\tmp\\test-gcc\\rust\\target\\i686-pc-windows-gnu\\debug\\rust-test.exe" failed, status c0000135
```
  • Loading branch information
taiki-e committed Mar 2, 2024
1 parent fb08bd1 commit 59f7055
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/.cspell/project-dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Icelake
INLINES
isnan
isystem
keyrings
keyserver
lclang
LDFLAGS
Expand Down Expand Up @@ -134,6 +135,7 @@ virt
wasmtime
wchar
WINEBOOT
winehq
WINEPATH
WINEPREFIX
wineserver
Expand Down
8 changes: 7 additions & 1 deletion docker/windows-gnu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ case "${dpkg_arch##*-}" in
;;
*) echo >&2 "unsupported architecture '${dpkg_arch}'" && exit 1 ;;
esac
# See https://wiki.winehq.org/Ubuntu when install the latest wine.
# Install the latest wine: https://wiki.winehq.org/Ubuntu
codename=$(grep '^VERSION_CODENAME=' /etc/os-release | sed 's/^VERSION_CODENAME=//')
mkdir -pm755 /etc/apt/keyrings
curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused https://dl.winehq.org/wine-builds/winehq.key \
| tee /etc/apt/keyrings/winehq-archive.key >/dev/null
curl --proto '=https' --tlsv1.2 -fsSLR --retry 10 --retry-connrefused "https://dl.winehq.org/wine-builds/ubuntu/dists/${codename}/winehq-${codename}.sources" \
| tee "/etc/apt/sources.list.d/winehq-${codename}.sources" >/dev/null
apt-get -o Acquire::Retries=10 -qq update && apt-get -o Acquire::Retries=10 -o Dpkg::Use-Pty=0 install -y --no-install-recommends \
wine-stable \
wine32 \
Expand Down

0 comments on commit 59f7055

Please sign in to comment.