Last active
February 5, 2021 05:11
-
-
Save axzxc1236/a5db69094a5bde32b49947b48ea48eb9 to your computer and use it in GitHub Desktop.
Extract fonts from Windows iso into wine folder.
This file contains hidden or 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
| #! /bin/bash | |
| if ! [ -e "/usr/bin/7z" ]; then | |
| sudo apt install p7zip-full -y | |
| fi | |
| ls *.iso 2>/dev/null >/dev/null | |
| if ! [ $? -eq 0 ]; then | |
| echo "There is no .iso file in this folder" | |
| else | |
| 7z e *.iso sources/install.wim | |
| 7z e install.wim 1/Windows/{Fonts/"*".{ttf,ttc},System32/Licenses/neutral/"*"/"*"/license.rtf} -o"$HOME/.wine/drive_c/windows/Fonts/" -y | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment