Skip to content

Commit

Permalink
Fix Wine install steps from WineHQ.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexhuszagh authored and Emilgardis committed Feb 4, 2023
1 parent 8a06a1c commit f79a7f0
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions docker/wine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,18 @@ main() {
# add repository for latest wine version and install from source
# hardcode version, since we might want to avoid a version later.
wget -nc https://dl.winehq.org/wine-builds/winehq.key
mv winehq.key /usr/share/keyrings/winehq-archive.key
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/bionic/winehq-bionic.sources
mv winehq-bionic.sources /etc/apt/sources.list.d/

# workaround for wine server synchronization, see #1035
# we need to ensure the keys are now stored in `/etc/apt/keyrings`,
# which were previously stored in `/usr/share/keyrings`, and ensure
# our sources list searches for the right location.
mkdir -p /etc/apt/keyrings
mv winehq.key /etc/apt/keyrings/winehq-archive.key

wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources
mv winehq-focal.sources /etc/apt/sources.list.d/
sed -i s@/usr/share/keyrings/@/etc/apt/keyrings/@ /etc/apt/sources.list.d/winehq-focal.sources || true

apt-get update
apt install --no-install-recommends --assume-yes \
"winehq-stable=7.0.0.0~bionic-1"
Expand Down

0 comments on commit f79a7f0

Please sign in to comment.