From 50f33051cd3c45907ec0926894951550ac08b986 Mon Sep 17 00:00:00 2001 From: iVAN <88724353+ivan-hc@users.noreply.github.com> Date: Thu, 16 Jan 2025 07:25:25 +0100 Subject: [PATCH 1/3] Update x86_64-apps --- programs/x86_64-apps | 1 - 1 file changed, 1 deletion(-) diff --git a/programs/x86_64-apps b/programs/x86_64-apps index 7e77cddf7..cfedae637 100644 --- a/programs/x86_64-apps +++ b/programs/x86_64-apps @@ -1668,7 +1668,6 @@ ◆ pelusica : Action game, control the blue dot with your keyboard/create music. ◆ pencil : Pencil2D is an easy, intuitive tool to make 2D hand-drawn animations. ◆ pennywise : Open any website or media in a floating window. -◆ penpot-desktop : Unofficial desktop app fo Penpot, the open-source design tool for design and code collaboration. ◆ perl-executing-browser : HTML5 user interface for Perl 5 desktop apps. ◆ permastead : Desktop software for managing a homestead using permaculture design. ◆ peruse : A reader application for comic books. From 7ff77ffc9504ed4a9c306f51bc0f5c7e34e3b7f9 Mon Sep 17 00:00:00 2001 From: iVAN <88724353+ivan-hc@users.noreply.github.com> Date: Thu, 16 Jan 2025 07:25:44 +0100 Subject: [PATCH 2/3] Delete programs/x86_64/penpot-desktop --- programs/x86_64/penpot-desktop | 77 ---------------------------------- 1 file changed, 77 deletions(-) delete mode 100644 programs/x86_64/penpot-desktop diff --git a/programs/x86_64/penpot-desktop b/programs/x86_64/penpot-desktop deleted file mode 100644 index d232e05ef..000000000 --- a/programs/x86_64/penpot-desktop +++ /dev/null @@ -1,77 +0,0 @@ -#!/bin/sh - -# AM INSTALL SCRIPT VERSION 3.5 -set -u -APP=penpot-desktop -SITE="developerfred/Penpot-Desktop" - -# CREATE DIRECTORIES AND ADD REMOVER -[ -n "$APP" ] && mkdir -p "/opt/$APP/tmp" "/opt/$APP/icons" && cd "/opt/$APP/tmp" || exit 1 -printf "#!/bin/sh\nset -e\nrm -f /usr/local/bin/$APP\nrm -R -f /opt/$APP" > ../remove -printf '\n%s' "rm -f /usr/local/share/applications/$APP-AM.desktop" >> ../remove -chmod a+x ../remove || exit 1 - -# DOWNLOAD AND PREPARE THE APP, $version is also used for updates -version=$(curl -Ls https://raw.githubusercontent.com/developerfred/Penpot-Desktop/main/README.md | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | grep -i "appimage$") -wget "$version" || exit 1 -# Keep this space in sync with other installation scripts -# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded. -cd .. -mv ./tmp/*mage ./"$APP" -# Keep this space in sync with other installation scripts -rm -R -f ./tmp || exit 1 -echo "$version" > ./version -chmod a+x ./"$APP" || exit 1 - -# LINK TO PATH -ln -s "/opt/$APP/$APP" "/usr/local/bin/$APP" - -# SCRIPT TO UPDATE THE PROGRAM -cat >> ./AM-updater << 'EOF' -#!/bin/sh -set -u -APP=penpot-desktop -SITE="developerfred/Penpot-Desktop" -version0=$(cat "/opt/$APP/version") -version=$(curl -Ls https://raw.githubusercontent.com/developerfred/Penpot-Desktop/main/README.md | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | grep -i "appimage$") -[ -n "$version" ] || { echo "Error getting link"; exit 1; } -if command -v appimageupdatetool >/dev/null 2>&1; then - cd "/opt/$APP" || exit 1 - appimageupdatetool -Or ./"$APP" && chmod a+x ./"$APP" && echo "$version" > ./version && exit 0 -fi -if [ "$version" != "$version0" ]; then - mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1 - notify-send "A new version of $APP is available, please wait" - wget "$version" || exit 1 - # Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded. - cd .. - mv --backup=t ./tmp/*mage ./"$APP" - chmod a+x ./"$APP" || exit 1 - echo "$version" > ./version - rm -R -f ./*zs-old ./*.part ./tmp ./*~ - notify-send "$APP is updated!" -else - echo "Update not needed!" -fi -EOF -chmod a+x ./AM-updater || exit 1 - -# LAUNCHER & ICON -./"$APP" --appimage-extract *.desktop 1>/dev/null && mv ./squashfs-root/*.desktop ./"$APP".desktop -./"$APP" --appimage-extract .DirIcon 1>/dev/null && mv ./squashfs-root/.DirIcon ./DirIcon -COUNT=0 -while [ "$COUNT" -lt 10 ]; do # Tries to get the actual icon/desktop if it is a symlink to another symlink - if [ -L ./"$APP".desktop ]; then - LINKPATH="$(readlink ./"$APP".desktop | sed 's|^\./||' 2>/dev/null)" - ./"$APP" --appimage-extract "$LINKPATH" 1>/dev/null && mv ./squashfs-root/"$LINKPATH" ./"$APP".desktop - fi - if [ -L ./DirIcon ]; then - LINKPATH="$(readlink ./DirIcon | sed 's|^\./||' 2>/dev/null)" - ./"$APP" --appimage-extract "$LINKPATH" 1>/dev/null && mv ./squashfs-root/"$LINKPATH" ./DirIcon - fi - [ ! -L ./"$APP".desktop ] && [ ! -L ./DirIcon ] && break - COUNT=$((COUNT + 1)) -done -sed -i "s#Exec=[^ ]*#Exec=$APP#g; s#Icon=.*#Icon=/opt/$APP/icons/$APP#g" ./"$APP".desktop -mv ./"$APP".desktop /usr/local/share/applications/"$APP"-AM.desktop && mv ./DirIcon ./icons/"$APP" 1>/dev/null -rm -R -f ./squashfs-root From cad270d3cf6d1e5e9058ecc498c7c8321a970ada Mon Sep 17 00:00:00 2001 From: iVAN <88724353+ivan-hc@users.noreply.github.com> Date: Thu, 16 Jan 2025 07:28:40 +0100 Subject: [PATCH 3/3] Update ankama-launcher --- programs/x86_64/ankama-launcher | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/x86_64/ankama-launcher b/programs/x86_64/ankama-launcher index 083d52b6c..2af562b9b 100644 --- a/programs/x86_64/ankama-launcher +++ b/programs/x86_64/ankama-launcher @@ -12,7 +12,7 @@ printf '\n%s' "rm -f /usr/local/share/applications/$APP-AM.desktop" >> ../remove chmod a+x ../remove || exit 1 # DOWNLOAD AND PREPARE THE APP, $version is also used for updates -version=$(wget -q https://repology.org/project/ankama-launcher/versions -O - | grep -i "uniq.*version" | head -1 | tr '><' '\n' | grep "^[0-9]") +version=$(wget -q https://repology.org/project/ankama-launcher/versions -O - | grep -i "new.*version" | head -1 | tr '><' '\n' | grep "^[0-9]") wget "https://launcher.cdn.ankama.com/installers/production/Ankama%20Launcher-Setup-x86_64.AppImage" || exit 1 #wget "$version.zsync" 2> /dev/null # Comment out this line if you want to use zsync # Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded. @@ -33,7 +33,7 @@ set -u APP=ankama-launcher SITE="https://ankama.com" version0=$(cat "/opt/$APP/version") -version=$(wget -q https://repology.org/project/ankama-launcher/versions -O - | grep -i "uniq.*version" | head -1 | tr '><' '\n' | grep "^[0-9]") +version=$(wget -q https://repology.org/project/ankama-launcher/versions -O - | grep -i "new.*version" | head -1 | tr '><' '\n' | grep "^[0-9]") [ -n "$version" ] || { echo "Error getting link"; exit 1; } if [ "$version" != "$version0" ] || [ -e /opt/"$APP"/*.zsync ]; then mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1