Compare commits

...

6 Commits

Author SHA1 Message Date
d14d3b178c
bump wine version 2023-10-11 08:33:36 +00:00
53721cc2ba
add comic32.exe 2023-10-11 08:32:51 +00:00
83b1e774b0
try fix 2023-10-11 08:00:24 +00:00
e6b8f06415
try fix 2023-10-11 05:36:34 +00:00
1ee909955c
try fix corefonts 2023-10-11 05:28:00 +00:00
81cd078b31
add corefonts 2023-10-11 05:07:32 +00:00
15 changed files with 32 additions and 9 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,7 +1,7 @@
{
"name": "Wine",
"id": "wine",
"version": "0.0.3",
"version": "0.0.4",
"description": "Installs Wine.",
"documentationURL": "https://github.com/Maks1mS/devcontainers-features/tree/main/src/wine",
"options": {
@ -14,4 +14,4 @@
"installsAfter": [
"ghcr.io/devcontainers/features/common-utils"
]
}
}

View File

@ -5,8 +5,25 @@ WINEVERSION="${VERSION:-"latest"}"
WINEHOME=$_REMOTE_USER_HOME
WINEPREFIX="$WINEHOME/.wine32"
WINEARCH="win32"
WINEDEBUG="-all"
# WINEARCH="win32"
# WINEDEBUG="-all"
COREFONTS_BASE_URL="https://raw.githubusercontent.com/Maks1mS/devcontainers-features/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"
"comic32.exe"
)
COREFONTS_CACHE_DIR="\$HOME/.cache/winetricks/corefonts/"
update_rc_file() {
# see if folder containing file exists
@ -57,10 +74,15 @@ export WINEDEBUG=-all"
update_rc_file "$_REMOTE_USER_HOME/.profile" "${snippet}"
update_rc_file "$_REMOTE_USER_HOME/.bashrc" "${snippet}"
su -l "$_REMOTE_USER" -c "mkdir -p $WINEPREFIX && wine wineboot --init"
su -l "$_REMOTE_USER" -c "echo \"check-certificate = off\" >> ~/.wgetrc"
su -l "$_REMOTE_USER" -c "echo \"check_certificate = off\" >> ~/.wgetrc"
su -l "$_REMOTE_USER" -c "winetricks corefonts"
su -l $_REMOTE_USER <<EOF
mkdir -p "\$WINEPREFIX"
wine wineboot --init
mkdir -p "$COREFONTS_CACHE_DIR"
for filename in ${COREFONTS_FILES[@]}; do
wget -P "$COREFONTS_CACHE_DIR" "$COREFONTS_BASE_URL\$filename"
done
winetricks corefonts
EOF
# Cleanup
apt purge --auto-remove -y

View File

@ -3,6 +3,7 @@ set -e
source dev-container-features-test-lib
check "wine exists" bash -c "wine --version"
check "wine version is same" bash -c "[[ "$(wine --version | tr -d -c 0-9.)" == *"8.5"* ]]"
reportResults
reportResults