diff --git a/CHANGELOG.md b/CHANGELOG.md index 569d5d4..fe4a446 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +# v0.78.1.8 + +* Update [lwrun](https://huggingface.co/lux-wine/lwrun/tree/main/releases/v0.39.1) packages +* Replace `mhfsize` with [moninfo](https://github.com/VHSgunzo/moninfo) for automatic `MangoHud` font size detection +* Changed the way `GL SHADER` cache is stored +* Fix move `vkd3d-proton.cache` +* Add `RU` translation to [lw-tray](https://github.com/VHSgunzo/lw-tray/releases/tag/v0.0.5) `v0.0.5` + # v0.78.1.7 * Update [lwrun](https://huggingface.co/lux-wine/lwrun/tree/main/releases/v0.39.1) packages diff --git a/lutris-wine b/lutris-wine index 3965f11..a102cc4 100755 --- a/lutris-wine +++ b/lutris-wine @@ -1 +1 @@ -LW_VERSION="0.78.1.7" +LW_VERSION="0.78.1.8" diff --git a/lux-wine b/lux-wine index 0c63254..5b32c38 100755 --- a/lux-wine +++ b/lux-wine @@ -1,6 +1,6 @@ #!/usr/bin/env bash -export LW_VERSION="0.78.1.7" +export LW_VERSION="0.78.1.8" export LW_DEVELOPERS="VHSgunzo" export RED='\033[1;91m' @@ -4332,7 +4332,7 @@ check_mangohud() { then if [ -n "$MANGOHUD_FONT_SIZE" ] then mhfsize=",font_size=$MANGOHUD_FONT_SIZE" - else mhfsize=",font_size=$(mhfsize 2>/dev/null)" + else mhfsize=",font_size=$(moninfo --mhfsize 2>/dev/null)" fi if [ -n "$MANGOHUDCFG" ] then diff --git a/lwrap/PKGBUILD b/lwrap/PKGBUILD index 4cea73f..7007ce4 100644 --- a/lwrap/PKGBUILD +++ b/lwrap/PKGBUILD @@ -2,7 +2,7 @@ pkgname='lwrap' pkgver='0.78.1' -pkgrel='7' +pkgrel='8' pkgdesc='Lux Wine wrapper for RunImage container' arch=('x86_64') url='https://github.com/VHSgunzo/lux-wine' @@ -33,15 +33,16 @@ depends=( 'dos2unix' 'lw-runtime' 'wine-gecko' 'wine-mono' 'libdvdread' 'a52dec' 'wavpack' 'lib32-wavpack' 'libmpeg2' 'twolame' 'lib32-twolame' 'gst-plugin-msdk' 'lib32-libdv' 'libdv' 'GE-Proton' 'xxd-standalone' 'obs-vkcapture-lw' 'lib32-obs-vkcapture-lw' 'egl-wayland' 'gstreamer-vaapi' - 'python-xlib' + 'moninfo' ) optdepends=( 'xf86-video-amdgpu' 'xf86-video-intel' 'llvm' 'lib32-opencl-icd-loader' 'opencl-icd-loader' 'lib32-llvm' 'wine-prefix-dotnet' ) -source=('lwrap' 'lwexec' 'mhfsize') -sha256sums=('SKIP' 'SKIP' 'SKIP') +source=('lwrap' 'lwexec') +sha256sums=('SKIP' 'SKIP') +install='lwrap.install' shopt -s extglob @@ -49,7 +50,6 @@ package() { install -dm755 "$pkgdir/usr/bin" install -Dm755 "$pkgname" "$pkgdir/opt/$pkgname/bin/$pkgname" install -Dm755 "lwexec" "$pkgdir/opt/$pkgname/bin/lwexec" - install -Dm755 "mhfsize" "$pkgdir/usr/bin/mhfsize" cp -ar --no-preserve=ownership "$(realpath ../../)"/!(.git*|$pkgname|lutris-wine) "$pkgdir/opt/$pkgname" mv -f "$pkgdir/opt/$pkgname/lux-wine" "$pkgdir/opt/$pkgname/bin/lux-wine" ln -sfr "$pkgdir/opt/$pkgname/bin/$pkgname" "$pkgdir/usr/bin/$pkgname" diff --git a/lwrap/lwrap.install b/lwrap/lwrap.install new file mode 100644 index 0000000..50c36ab --- /dev/null +++ b/lwrap/lwrap.install @@ -0,0 +1,36 @@ +## arg 1: the new package version +# pre_install() { +# true +# } + +## arg 1: the new package version +#post_install() { + # do something here +#} + +## arg 1: the new package version +## arg 2: the old package version +# pre_upgrade() { +# pre_install +# } + +## arg 1: the new package version +## arg 2: the old package version +post_upgrade() { + if pac -Q python-xlib &>/dev/null + then + rm -f /var/lib/pacman/db.lck + yes|pac -Rsn python-xlib + touch /var/lib/pacman/db.lck + fi +} + +## arg 1: the old package version +#pre_remove() { + # do something here +#} + +## arg 1: the old package version +#post_remove() { + # do something here +#} diff --git a/lwrap/mhfsize b/lwrap/mhfsize deleted file mode 100755 index 6d910de..0000000 --- a/lwrap/mhfsize +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/python3 -import os - -from Xlib import display as xdisplay - -display = xdisplay.Display() -root_screen = display.screen().root - -try: - mhfratio = int(os.getenv('MANGOHUD_FONT_SIZE_RATION')) -except: - mhfratio = 45 - -for mon in root_screen.xrandr_get_monitors().monitors: - if mon.primary: - print(int(mon.height_in_pixels / mhfratio))