mirror of
https://github.com/Maks1mS/devcontainers-features.git
synced 2025-10-19 09:28:37 +03:00
Compare commits
16 Commits
feature_wi
...
d14d3b178c
Author | SHA1 | Date | |
---|---|---|---|
d14d3b178c | |||
53721cc2ba | |||
83b1e774b0 | |||
e6b8f06415 | |||
1ee909955c | |||
81cd078b31 | |||
|
ecf388f7c9 | ||
784f92b374 | |||
540057550e | |||
15390cb411 | |||
ae8a182675 | |||
fa2004146c | |||
aca0c1e295 | |||
90cbac1ff7 | |||
3c793d0e3d | |||
f73c58a243 |
@@ -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
|
||||||
|
|
||||||
|
BIN
src/wine/corefonts/andale32.exe
Normal file
BIN
src/wine/corefonts/andale32.exe
Normal file
Binary file not shown.
BIN
src/wine/corefonts/arial32.exe
Normal file
BIN
src/wine/corefonts/arial32.exe
Normal file
Binary file not shown.
BIN
src/wine/corefonts/arialb32.exe
Normal file
BIN
src/wine/corefonts/arialb32.exe
Normal file
Binary file not shown.
BIN
src/wine/corefonts/comic32.exe
Normal file
BIN
src/wine/corefonts/comic32.exe
Normal file
Binary file not shown.
BIN
src/wine/corefonts/courie32.exe
Normal file
BIN
src/wine/corefonts/courie32.exe
Normal file
Binary file not shown.
BIN
src/wine/corefonts/georgi32.exe
Normal file
BIN
src/wine/corefonts/georgi32.exe
Normal file
Binary file not shown.
BIN
src/wine/corefonts/impact32.exe
Normal file
BIN
src/wine/corefonts/impact32.exe
Normal file
Binary file not shown.
BIN
src/wine/corefonts/times32.exe
Normal file
BIN
src/wine/corefonts/times32.exe
Normal file
Binary file not shown.
BIN
src/wine/corefonts/trebuc32.exe
Normal file
BIN
src/wine/corefonts/trebuc32.exe
Normal file
Binary file not shown.
BIN
src/wine/corefonts/verdan32.exe
Normal file
BIN
src/wine/corefonts/verdan32.exe
Normal file
Binary file not shown.
BIN
src/wine/corefonts/wd97vwr32.exe
Normal file
BIN
src/wine/corefonts/wd97vwr32.exe
Normal file
Binary file not shown.
BIN
src/wine/corefonts/webdin32.exe
Normal file
BIN
src/wine/corefonts/webdin32.exe
Normal file
Binary file not shown.
@@ -1,12 +1,14 @@
|
|||||||
{
|
{
|
||||||
"name": "Wine",
|
"name": "Wine",
|
||||||
"id": "wine",
|
"id": "wine",
|
||||||
"version": "0.0.2",
|
"version": "0.0.4",
|
||||||
"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": [
|
||||||
|
@@ -5,8 +5,25 @@ WINEVERSION="${VERSION:-"latest"}"
|
|||||||
|
|
||||||
WINEHOME=$_REMOTE_USER_HOME
|
WINEHOME=$_REMOTE_USER_HOME
|
||||||
WINEPREFIX="$WINEHOME/.wine32"
|
WINEPREFIX="$WINEHOME/.wine32"
|
||||||
WINEARCH="win32"
|
# WINEARCH="win32"
|
||||||
WINEDEBUG="-all"
|
# 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() {
|
update_rc_file() {
|
||||||
# see if folder containing file exists
|
# see if folder containing file exists
|
||||||
@@ -43,7 +60,7 @@ 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
|
||||||
@@ -57,7 +74,15 @@ export WINEDEBUG=-all"
|
|||||||
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 && 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
|
# Cleanup
|
||||||
apt purge --auto-remove -y
|
apt purge --auto-remove -y
|
||||||
|
@@ -3,6 +3,7 @@ set -e
|
|||||||
|
|
||||||
source dev-container-features-test-lib
|
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"* ]]"
|
check "wine version is same" bash -c "[[ "$(wine --version | tr -d -c 0-9.)" == *"8.5"* ]]"
|
||||||
|
|
||||||
reportResults
|
reportResults
|
Reference in New Issue
Block a user