From 60d745b7d26a789ec157a629351ca979bc2baa12 Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Tue, 17 Mar 2026 11:03:53 +0500 Subject: [PATCH] epm play lenza: fix version check and desktop file (eterbug #18977) Signed-off-by: Boris Yumankulov --- play.d/lenza.sh | 2 +- repack.d/Lenza.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 repack.d/Lenza.sh diff --git a/play.d/lenza.sh b/play.d/lenza.sh index ccbf3a8b0..fe683ec15 100755 --- a/play.d/lenza.sh +++ b/play.d/lenza.sh @@ -13,7 +13,7 @@ if ! is_glibc_enough 2.34 ; then fi if [ "$VERSION" = "*" ] ; then - VERSION=$(eget -O- https://lenzaos.com/ | grep -oP 'Lenza-\K[0-9]+\.[0-9]+\.[0-9]+(?=\.AppImage)') + VERSION=$(eget -O- https://software.lenzaos.com/app-chats/latest-linux.yml | awk -F': ' '/^version:/{print $2; exit}' | tr -d '\r') fi PKGURL="https://software.lenzaos.com/app-chats/$PKGNAME-$VERSION.AppImage" diff --git a/repack.d/Lenza.sh b/repack.d/Lenza.sh new file mode 100644 index 000000000..a8346f6d2 --- /dev/null +++ b/repack.d/Lenza.sh @@ -0,0 +1,13 @@ +#!/bin/sh -x + +# It will be run with two args: buildroot spec +BUILDROOT="$1" +SPEC="$2" + +. $(dirname $0)/common.sh + +# Fix broken Categories +fix_desktop_file "Categories=.*" "Categories=Network;InstantMessaging;Chat;" + +# Drop no sandbox from exec (Lenza --no-sandbox %U) +fix_desktop_file "Exec=.*" "Exec=lenza %U"