From 0a9f3b0371ef4409b8fd50af5c20a0864a7b7a03 Mon Sep 17 00:00:00 2001
From: iVAN <88724353+ivan-hc@users.noreply.github.com>
Date: Wed, 22 Jan 2025 20:55:00 +0100
Subject: [PATCH] Update stable, git and dev

- Stable, Archimage 4.3
- DEV and GIT, Archimage 3.5
---
 gimp-dev-junest.sh | 21 +++++++++++++++------
 gimp-git-junest.sh | 21 +++++++++++++++------
 gimp-junest.sh     |  2 +-
 3 files changed, 31 insertions(+), 13 deletions(-)

diff --git a/gimp-dev-junest.sh b/gimp-dev-junest.sh
index a49020f..9818492 100644
--- a/gimp-dev-junest.sh
+++ b/gimp-dev-junest.sh
@@ -366,9 +366,18 @@ mkdir -p ./$APP.AppDir/.junest/usr/share/fonts
 mkdir -p ./$APP.AppDir/.junest/usr/share/themes
 mkdir -p ./$APP.AppDir/.junest/run/user
 
-# CREATE THE APPIMAGE
-if test -f ./*.AppImage; then
-	rm -R -f ./*archimage*.AppImage
-fi
-ARCH=x86_64 ./appimagetool --comp zstd --mksquashfs-opt -Xcompression-level --mksquashfs-opt 20 ./$APP.AppDir
-mv ./*AppImage ./"$(cat ./$APP.AppDir/*.desktop | grep 'Name=' | head -1 | cut -c 6- | sed 's/ /-/g')"_DEV_"$VERSION"-archimage3.4.1-1-x86_64.AppImage
+#############################################################################
+#	CREATE THE APPIMAGE
+#############################################################################
+
+if test -f ./*.AppImage; then rm -Rf ./*archimage*.AppImage; fi
+
+APPNAME=$(cat ./"$APP".AppDir/*.desktop | grep 'Name=' | head -1 | cut -c 6- | sed 's/ /-/g')
+REPO="GIMP-appimage"
+TAG="continuous-dev"
+VERSION="$VERSION"
+UPINFO="gh-releases-zsync|$GITHUB_REPOSITORY_OWNER|$REPO|$TAG|*x86_64.AppImage.zsync"
+
+ARCH=x86_64 ./appimagetool --comp zstd --mksquashfs-opt -Xcompression-level --mksquashfs-opt 20 \
+	-u "$UPINFO" \
+	./"$APP".AppDir "$APPNAME"_DEV_"$VERSION"-archimage3.5-x86_64.AppImage
diff --git a/gimp-git-junest.sh b/gimp-git-junest.sh
index 80a901c..60d92ae 100644
--- a/gimp-git-junest.sh
+++ b/gimp-git-junest.sh
@@ -535,9 +535,18 @@ strip --strip-debug ./$APP.AppDir/.junest/usr/lib/*
 strip --strip-unneeded ./$APP.AppDir/.junest/usr/bin/*
 _enable_mountpoints_for_the_inbuilt_bubblewrap
 
-# CREATE THE APPIMAGE
-if test -f ./*.AppImage; then
-	rm -R -f ./*archimage*.AppImage
-fi
-ARCH=x86_64 ./appimagetool --comp zstd --mksquashfs-opt -Xcompression-level --mksquashfs-opt 20 ./$APP.AppDir
-mv ./*AppImage ./"$(cat ./"$APP".AppDir/*.desktop | grep 'Name=' | head -1 | cut -c 6- | sed 's/ /-/g')"_GIT_"$VERSION"-archimage3.4.4-2-x86_64.AppImage
+#############################################################################
+#	CREATE THE APPIMAGE
+#############################################################################
+
+if test -f ./*.AppImage; then rm -Rf ./*archimage*.AppImage; fi
+
+APPNAME=$(cat ./"$APP".AppDir/*.desktop | grep 'Name=' | head -1 | cut -c 6- | sed 's/ /-/g')
+REPO="GIMP-appimage"
+TAG="continuous-git"
+VERSION="$VERSION"
+UPINFO="gh-releases-zsync|$GITHUB_REPOSITORY_OWNER|$REPO|$TAG|*x86_64.AppImage.zsync"
+
+ARCH=x86_64 ./appimagetool --comp zstd --mksquashfs-opt -Xcompression-level --mksquashfs-opt 20 \
+	-u "$UPINFO" \
+	./"$APP".AppDir "$APPNAME"_GIT_"$VERSION"-archimage3.5-x86_64.AppImage
diff --git a/gimp-junest.sh b/gimp-junest.sh
index 29deccc..7bee04d 100644
--- a/gimp-junest.sh
+++ b/gimp-junest.sh
@@ -563,7 +563,7 @@ _enable_mountpoints_for_the_inbuilt_bubblewrap
 if test -f ./*.AppImage; then rm -Rf ./*archimage*.AppImage; fi
 
 APPNAME=$(cat ./"$APP".AppDir/*.desktop | grep 'Name=' | head -1 | cut -c 6- | sed 's/ /-/g')
-REPO="$APPNAME-appimage"
+REPO="GIMP-appimage"
 TAG="continuous"
 VERSION="$VERSION"
 UPINFO="gh-releases-zsync|$GITHUB_REPOSITORY_OWNER|$REPO|$TAG|*x86_64.AppImage.zsync"