mirror of
https://github.com/Maks1mS/devcontainers-features.git
synced 2025-10-19 09:28:37 +03:00
Compare commits
15 Commits
feature_wi
...
automated-
Author | SHA1 | Date | |
---|---|---|---|
|
8f61a926c1 | ||
784f92b374 | |||
540057550e | |||
15390cb411 | |||
ae8a182675 | |||
fa2004146c | |||
aca0c1e295 | |||
90cbac1ff7 | |||
3c793d0e3d | |||
f73c58a243 | |||
6de995c709 | |||
5b4b782e89 | |||
14073b6d65 | |||
773db8e16f | |||
|
84f86a2c80 |
@@ -7,7 +7,7 @@ Installs Wine.
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
"features": {
|
"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 |
|
| Options Id | Description | Type | Default Value |
|
||||||
|-----|-----|-----|-----|
|
|-----|-----|-----|-----|
|
||||||
| version | - | string | latest |
|
| version | Version of Wine | string | latest |
|
||||||
|
|
||||||
## OS Support
|
## OS Support
|
||||||
|
|
||||||
|
@@ -1,12 +1,14 @@
|
|||||||
{
|
{
|
||||||
"name": "Wine",
|
"name": "Wine",
|
||||||
"id": "wine",
|
"id": "wine",
|
||||||
"version": "0.0.1",
|
"version": "0.0.3",
|
||||||
"description": "Installs Wine.",
|
"description": "Installs Wine.",
|
||||||
|
"documentationURL": "https://github.com/Maks1mS/devcontainers-features/tree/main/src/wine",
|
||||||
"options": {
|
"options": {
|
||||||
"version": {
|
"version": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "latest"
|
"default": "latest",
|
||||||
|
"description": "Version of Wine"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"installsAfter": [
|
"installsAfter": [
|
||||||
|
@@ -43,26 +43,24 @@ install_debian() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
apt-get update
|
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
|
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"
|
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
|
# Cleanup
|
||||||
apt purge --auto-remove -y
|
apt purge --auto-remove -y
|
||||||
|
Reference in New Issue
Block a user