diff --git a/play.d/lenza.sh b/play.d/lenza.sh index ccbf3a8b..fe683ec1 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 00000000..a8346f6d --- /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"