mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Update the Ubuntu Wine downgrading snippet
They now use a different format for the sources, and the suffix was incorrect.
This commit is contained in:
@@ -211,10 +211,10 @@ earlier version of Wine. This can be done as follows:
|
||||
you want to install, and then run these commands under Bash:
|
||||
|
||||
```shell
|
||||
version=6.14
|
||||
version=7.8
|
||||
variant=staging
|
||||
codename=$(shopt -s nullglob; awk '/^deb https:\/\/dl\.winehq\.org/ { print $3; exit }' /etc/apt/sources.list /etc/apt/sources.list.d/*.list)
|
||||
suffix=$(dpkg --compare-versions "$version" ge 6.1 && ((dpkg --compare-versions "$version" ge 6.17 && echo "-2") || echo "-1"))
|
||||
codename=$(shopt -s nullglob; awk '/^deb https:\/\/dl\.winehq\.org/ { print $3; exit 0 } END { exit 1 }' /etc/apt/sources.list /etc/apt/sources.list.d/*.list || awk '/^Suites:/ { print $2; exit }' /etc/apt/sources.list /etc/apt/sources.list.d/wine*.sources)
|
||||
suffix=$(dpkg --compare-versions "$version" ge 6.1 && ((dpkg --compare-versions "$version" eq 6.17 && echo "-2") || echo "-1"))
|
||||
sudo apt install --install-recommends {"winehq-$variant","wine-$variant","wine-$variant-amd64","wine-$variant-i386"}="$version~$codename$suffix"
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user