15 Commits

Author SHA1 Message Date
github-actions[bot]
8f61a926c1 Automated documentation update [skip ci] 2023-09-20 17:08:54 +00: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
6de995c709 [wine] bump version 2023-09-19 12:04:14 +00:00
5b4b782e89 remove mkdir 2023-09-19 11:56:09 +00:00
14073b6d65 Merge remote-tracking branch 'refs/remotes/origin/main' 2023-09-19 11:47:35 +00:00
773db8e16f add export to env variables 2023-09-19 11:47:18 +00:00
github-actions[bot]
84f86a2c80 Automated documentation update [skip ci] (#3)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-18 09:39:43 +03:00
3 changed files with 16 additions and 16 deletions

View File

@@ -7,7 +7,7 @@ Installs Wine.
```json
"features": {
"ghcr.io/Maks1mS/devcontainers-features/wine:1": {}
"ghcr.io/Maks1mS/devcontainers-features/wine:0": {}
}
```
@@ -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.1",
"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,26 +43,24 @@ 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
mkdir -p "$WINEPREFIX"
snippet="
WINEHOME=\"$_REMOTE_USER_HOME\"
WINEPREFIX=\"\$WINEHOME/.wine32\"
WINEARCH=win32
WINEDEBUG=-all
"
snippet="export WINEHOME=\"$_REMOTE_USER_HOME\"
export WINEPREFIX=\"\$WINEHOME/.wine32\"
export WINEARCH=win32
export WINEDEBUG=-all"
update_rc_file "$_REMOTE_USER_HOME/.zshenv" "${snippet}"
update_rc_file "$_REMOTE_USER_HOME/.profile" "${snippet}"
update_rc_file "$_REMOTE_USER_HOME/.bashrc" "${snippet}"
su -l "$_REMOTE_USER" -c "mkdir -p $WINEPREFIX"
su -l "$_REMOTE_USER" -c "wine wineboot --init"
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