Updated reflex-appimage to 1.0.10-3

This commit is contained in:
2026-05-06 14:34:52 +02:00
parent c7837accaa
commit 1c06388f7e
4 changed files with 12 additions and 13 deletions

14
push.sh
View File

@@ -38,28 +38,25 @@ else
fi
# Perform variable substitution
url="${url//\$\{pkgname\}/$pkgname}"
url="${url//\$\{_pkgname\}/$_pkgname}"
url="${url//\$\{_srcname\}/$_srcname}"
url="${url//\$\{_srcmntr\}/$_srcmntr}"
url="${url//\$\{pkgver\}/$pkgver}"
_archive="${_archive//\$\{pkgname\}/$pkgname}"
_archive="${_archive//\$\{_pkgname\}/$_pkgname}"
_archive="${_archive//\$\{pkgver\}/$pkgver}"
aur_url="${aur_url//\$\{_pkgname\}/$_pkgname}"
pkgname="${pkgname//\$\{_pkgname\}/$_pkgname}"
# Download archive
wget -O ${_archive} "${url}"
wget -qO ${_archive} "${url}"
# Extract icon / .desktop files if appimage
if printf '%s' "${_archive,,}" | grep -qi "appimage"; then
chmod +x "${_archive}"
"./${_archive}" --appimage-extract
"./${_archive}" --appimage-extract >/dev/null
cp "squashfs-root/${desktop}" "${newdesktop}"
cp "squashfs-root/${icon}" "${newicon}"
sed -i -e '/^X-AppImage-/d;/^$/d' "${newdesktop}"
if [ -L "squashfs-root" ]; then
rm -rf $(readlink -f squashfs-root) squashfs-root
fi
rm -rf $(readlink -f squashfs-root) squashfs-root
fi
# Calculate checksums
sha256bin=$(sha256sum ${_archive} | awk '{print $1}')
@@ -87,6 +84,7 @@ makepkg --printsrcinfo > .SRCINFO
# Create git message with correct variable
if [ -n "$_pkgname" ]; then
echo "$pkgname"
commit_msg="Updated ${pkgname//\$\{_pkgname\}/_pkgname} to ${pkgver}-${pkgrel}"
else
commit_msg="Updated ${pkgname} to ${pkgver}-${pkgrel}"
@@ -95,7 +93,7 @@ fi
if [ -z "${NO_GIT_PUSH}" ]; then
# In case of fire, git commit, git push, leave building
git add .
git commit -m "Updated ${pkgname} to ${pkgver}-${pkgrel}"
git commit -m "${commit_msg}"
git remote add aur ${aur_url}
git push origin main
git push aur main:master