mirror of
https://github.com/Maks1mS/devcontainers-features.git
synced 2024-12-24 00:02:58 +03:00
try fix corefonts
This commit is contained in:
parent
81cd078b31
commit
1ee909955c
@ -5,8 +5,24 @@ WINEVERSION="${VERSION:-"latest"}"
|
|||||||
|
|
||||||
WINEHOME=$_REMOTE_USER_HOME
|
WINEHOME=$_REMOTE_USER_HOME
|
||||||
WINEPREFIX="$WINEHOME/.wine32"
|
WINEPREFIX="$WINEHOME/.wine32"
|
||||||
WINEARCH="win32"
|
# WINEARCH="win32"
|
||||||
WINEDEBUG="-all"
|
# WINEDEBUG="-all"
|
||||||
|
|
||||||
|
COREFONTS_BASE_URL="https://github.com/Maks1mS/devcontainers-features/raw/main/src/wine/corefonts/"
|
||||||
|
COREFONTS_FILES=(
|
||||||
|
"andale32.exe"
|
||||||
|
"arial32.exe"
|
||||||
|
"arialb32.exe"
|
||||||
|
"courie32.exe"
|
||||||
|
"georgi32.exe"
|
||||||
|
"impact32.exe"
|
||||||
|
"times32.exe"
|
||||||
|
"trebuc32.exe"
|
||||||
|
"verdan32.exe"
|
||||||
|
"wd97vwr32.exe"
|
||||||
|
"webdin32.exe"
|
||||||
|
)
|
||||||
|
COREFONTS_CACHE_DIR="$HOME/.cache/winetricks/corefonts/"
|
||||||
|
|
||||||
update_rc_file() {
|
update_rc_file() {
|
||||||
# see if folder containing file exists
|
# see if folder containing file exists
|
||||||
@ -57,10 +73,17 @@ export WINEDEBUG=-all"
|
|||||||
update_rc_file "$_REMOTE_USER_HOME/.profile" "${snippet}"
|
update_rc_file "$_REMOTE_USER_HOME/.profile" "${snippet}"
|
||||||
update_rc_file "$_REMOTE_USER_HOME/.bashrc" "${snippet}"
|
update_rc_file "$_REMOTE_USER_HOME/.bashrc" "${snippet}"
|
||||||
|
|
||||||
su -l "$_REMOTE_USER" -c "mkdir -p $WINEPREFIX && wine wineboot --init"
|
su - "$_REMOTE_USER" <<EOF
|
||||||
su -l "$_REMOTE_USER" -c "echo \"check-certificate = off\" >> ~/.wgetrc"
|
mkdir -p "$WINEPREFIX"
|
||||||
su -l "$_REMOTE_USER" -c "echo \"check_certificate = off\" >> ~/.wgetrc"
|
wine wineboot --init
|
||||||
su -l "$_REMOTE_USER" -c "winetricks corefonts"
|
echo "check-certificate = off" >> ~/.wgetrc
|
||||||
|
echo "check_certificate = off" >> ~/.wgetrc
|
||||||
|
mkdir -p "$COREFONTS_CACHE_DIR"
|
||||||
|
for filename in "${COREFONTS_FILES[@]}"; do
|
||||||
|
curl -O "$COREFONTS_CACHE_DIR\$filename $COREFONTS_BASE_URL\$filename"
|
||||||
|
done
|
||||||
|
winetricks corefonts
|
||||||
|
EOF
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
apt purge --auto-remove -y
|
apt purge --auto-remove -y
|
||||||
|
Loading…
Reference in New Issue
Block a user