mirror of
https://github.com/Maks1mS/devcontainers-features.git
synced 2024-12-24 00:02:58 +03:00
fi
This commit is contained in:
parent
c217eb3020
commit
2ecf6b86a0
@ -6,7 +6,7 @@
|
|||||||
"options": {
|
"options": {
|
||||||
"version": {
|
"version": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "8.15"
|
"default": "latest"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"installsAfter": [
|
"installsAfter": [
|
||||||
|
@ -1,11 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
WINEVERSION=$WINEVERSION
|
WINEVERSION="${VERSION:-"latest"}"
|
||||||
WINEHOME="/home/root"
|
|
||||||
WINEPREFIX="$WINEHOME/.wine32"
|
|
||||||
WINEARCH="win32"
|
|
||||||
WINEDEBUG=-all
|
|
||||||
|
|
||||||
install_debian() {
|
install_debian() {
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
@ -21,11 +17,14 @@ install_debian() {
|
|||||||
|
|
||||||
wget https://dl.winehq.org/wine-builds/winehq.key -O - | apt-key add -
|
wget https://dl.winehq.org/wine-builds/winehq.key -O - | apt-key add -
|
||||||
echo "deb https://dl.winehq.org/wine-builds/debian $VERSION_CODENAME main" >/etc/apt/sources.list.d/winehq.list
|
echo "deb https://dl.winehq.org/wine-builds/debian $VERSION_CODENAME main" >/etc/apt/sources.list.d/winehq.list
|
||||||
{
|
|
||||||
echo "Package: *wine* *wine*:i386"
|
if [ "${WINEVERSION}" != "latest" ]; then
|
||||||
echo "Pin: version $WINEVERSION~$VERSION_CODENAME"
|
{
|
||||||
echo "Pin-Priority: 1001"
|
echo "Package: *wine* *wine*:i386"
|
||||||
} >/etc/apt/preferences.d/winehq.pref
|
echo "Pin: version $WINEVERSION~$VERSION_CODENAME"
|
||||||
|
echo "Pin-Priority: 1001"
|
||||||
|
} >/etc/apt/preferences.d/winehq.pref
|
||||||
|
fi
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y --no-install-recommends winehq-stable
|
apt-get install -y --no-install-recommends winehq-stable
|
||||||
|
Loading…
Reference in New Issue
Block a user