This commit is contained in:
Maxim Slipenko 2023-09-17 20:09:04 +00:00 committed by GitHub
parent c217eb3020
commit 2ecf6b86a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 11 deletions

View File

@ -6,7 +6,7 @@
"options": { "options": {
"version": { "version": {
"type": "string", "type": "string",
"default": "8.15" "default": "latest"
} }
}, },
"installsAfter": [ "installsAfter": [

View File

@ -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