16 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
github-actions[bot]
ecf388f7c9 Automated documentation update [skip ci] (#4)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-20 20:09:44 +03:00
784f92b374 [wine] Update devcontainer-feature.json 2023-09-20 20:08:15 +03:00
540057550e [wine] try fix winetricks 2023-09-19 13:52:55 +00:00
15390cb411 [wine] try fix winetricks 2023-09-19 13:47:49 +00:00
ae8a182675 [wine] try fix winetricks 2023-09-19 13:40:54 +00:00
fa2004146c [wine] change check_certificate to check-certificate 2023-09-19 13:25:18 +00:00
aca0c1e295 [wine] try fix ssl problem 2023-09-19 13:15:15 +00:00
90cbac1ff7 [wine] try fix ssl problem 2023-09-19 13:03:29 +00:00
3c793d0e3d [wine] bump version 2023-09-19 12:41:42 +00:00
f73c58a243 [wine] add "winetricks corefonts" 2023-09-19 12:09:00 +00:00
16 changed files with 36 additions and 8 deletions

View File

@@ -15,7 +15,7 @@ Installs Wine.
| Options Id | Description | Type | Default Value |
|-----|-----|-----|-----|
| version | - | string | latest |
| version | Version of Wine | string | latest |
## OS Support

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,12 +1,14 @@
{
"name": "Wine",
"id": "wine",
"version": "0.0.2",
"version": "0.0.4",
"description": "Installs Wine.",
"documentationURL": "https://github.com/Maks1mS/devcontainers-features/tree/main/src/wine",
"options": {
"version": {
"type": "string",
"default": "latest"
"default": "latest",
"description": "Version of Wine"
}
},
"installsAfter": [

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
@@ -43,7 +60,7 @@ install_debian() {
fi
apt-get update
apt-get install -y --no-install-recommends winehq-staging
apt-get install -y --install-recommends winehq-staging
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks -O /usr/bin/winetricks
chmod +rx /usr/bin/winetricks
@@ -57,7 +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 <<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