Last active
February 22, 2023 22:03
-
-
Save charlieporth1/d2d8eb195d307e32a5f4dce3795739a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
export DEBIAN_FRONTEND=noninteractive | |
export OS_ID=$(cat /etc/os-release | grep -E ^ID= | awk -F= '{print $2}' | awk '{print $1=$1}') | |
export VERSION_CODENAME=$(cat /etc/os-release | grep VERSION_CODENAME | awk -F= '{print $2}' | awk '{print $1=$1}') | |
dpkg --add-architecture i386 | |
apt-get update | |
apt-get install -y ca-certificates apt-transport-https curl wget | |
mkdir -pm755 /etc/apt/keyrings | |
wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key | |
# wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/$OS_ID/dists/$VERSION_CODENAME/Sources | |
echo "deb https://dl.winehq.org/wine-builds/$OS_ID/ $VERSION_CODENAME main" | tee /etc/apt/sources.list.d/wine.list | |
apt-get update | |
apt-get install \ | |
-y \ | |
--install-recommends \ | |
--allow-unauthenticated \ | |
wine-stable | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment