10 Commits

3 changed files with 10 additions and 5 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

View File

@@ -1,15 +1,17 @@
{
"name": "Wine",
"id": "wine",
"version": "0.0.2",
"version": "0.0.3",
"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": [
"ghcr.io/devcontainers/features/common-utils"
]
}
}

View File

@@ -43,7 +43,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
@@ -58,6 +58,9 @@ export WINEDEBUG=-all"
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"
# Cleanup
apt purge --auto-remove -y