Skip to content

Instantly share code, notes, and snippets.

@GitHub30
Last active October 27, 2021 13:39
Show Gist options
  • Save GitHub30/84364cd3d749b0a1da151e845383729e to your computer and use it in GitHub Desktop.
Save GitHub30/84364cd3d749b0a1da151e845383729e to your computer and use it in GitHub Desktop.
sudo apt purge -y 'wine*' \
&& sudo dpkg --add-architecture i386 \
&& wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add - \
&& sudo add-apt-repository -y "deb https://dl.winehq.org/wine-builds/ubuntu/ $(lsb_release -cs) main" \
&& sudo apt update \
&& wine_version=staging \
&& sudo apt install --install-recommends -y winehq-$wine_version winetricks \
&& mono_version=$(iconv -cfutf16 /opt/wine-$wine_version/lib64/wine/x86_64-windows/appwiz.cpl 2>/dev/null | grep -Pao '(?<=wine-mono-).+(?=-x86\.msi)') \
&& gecko_version=$(iconv -cfutf16 /opt/wine-$wine_version/lib64/wine/x86_64-windows/appwiz.cpl 2>/dev/null | grep -Pao '(?<=wine-gecko-).+(?=-x86_64\.msi)') \
&& mkdir -p ~/.cache/wine \
&& wget -nc https://dl.winehq.org/wine/wine-mono/$mono_version/wine-mono-$mono_version-x86.msi https://dl.winehq.org/wine/wine-gecko/$gecko_version/wine-gecko-$gecko_version-x86{,_64}.msi -P ~/.cache/wine/ \
&& winetricks -q cjkfonts vcrun2013 \
&& mkdir -p "$HOME/.wine/drive_c/users/$USER/AppData/Local/Amazon/Kindle" \
&& wget -nc --trust-server-names http://www.amazon.co.jp/kindlepcdownload \
&& wine KindleForPC-installer-*.exe
@GitHub30
Copy link
Author

wine-gecko-2.47.2-x86.msi wine-mono-6.4.0-x86.msi

@GitHub30
Copy link
Author

grep -r "2.47.2" .

@GitHub30
Copy link
Author

GitHub30 commented Oct 26, 2021

ls /home/hippo/.cache/wine/
mkdir -p ~/.local/share/wine/{mono,gecko}
cp .cache/wine/wine-mono*.msi ~/.local/share/wine/mono/
cp .cache/wine/wine-gecko*.msi ~/.local/share/wine/gecko/
wget -nc https://dl.winehq.org/wine/wine-gecko/2.47.2/wine-gecko-2.47.2-x86{,_64}.msi -P ~/.local/share/wine/gecko/
wget -nc https://dl.winehq.org/wine/wine-mono/6.4.0/wine-mono-6.4.0-x86.msi -P ~/.local/share/wine/mono/

sudo mkdir -p /usr/share/wine/{mono,gecko}
sudo wget -nc https://dl.winehq.org/wine/wine-mono/6.4.0/wine-mono-6.4.0-x86.msi -P /usr/share/wine/mono/
sudo wget -nc https://dl.winehq.org/wine/wine-gecko/2.47.2/wine-gecko-2.47.2-x86{,_64}.msi -P /usr/share/wine/gecko/

grep -ir gecko $(sudo find / -iname '*wine*' 2>/dev/null) 2>/dev/null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment