5 Commits

Author SHA1 Message Date
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 7 additions and 12 deletions

View File

@@ -7,7 +7,7 @@ Installs Wine.
```json ```json
"features": { "features": {
"ghcr.io/Maks1mS/devcontainers-features/wine:1": {} "ghcr.io/Maks1mS/devcontainers-features/wine:0": {}
} }
``` ```

View File

@@ -1,7 +1,7 @@
{ {
"name": "Wine", "name": "Wine",
"id": "wine", "id": "wine",
"version": "0.0.1", "version": "0.0.2",
"description": "Installs Wine.", "description": "Installs Wine.",
"options": { "options": {
"version": { "version": {

View File

@@ -48,21 +48,16 @@ install_debian() {
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks -O /usr/bin/winetricks wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks -O /usr/bin/winetricks
chmod +rx /usr/bin/winetricks chmod +rx /usr/bin/winetricks
mkdir -p "$WINEPREFIX" snippet="export WINEHOME=\"$_REMOTE_USER_HOME\"
export WINEPREFIX=\"\$WINEHOME/.wine32\"
snippet=" export WINEARCH=win32
WINEHOME=\"$_REMOTE_USER_HOME\" export WINEDEBUG=-all"
WINEPREFIX=\"\$WINEHOME/.wine32\"
WINEARCH=win32
WINEDEBUG=-all
"
update_rc_file "$_REMOTE_USER_HOME/.zshenv" "${snippet}" update_rc_file "$_REMOTE_USER_HOME/.zshenv" "${snippet}"
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" su -l "$_REMOTE_USER" -c "mkdir -p $WINEPREFIX && wine wineboot --init"
su -l "$_REMOTE_USER" -c "wine wineboot --init"
# Cleanup # Cleanup
apt purge --auto-remove -y apt purge --auto-remove -y