Commit 8f3d8163 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack: add support for .appimage (low case) extension

parent c1b542e7
......@@ -110,7 +110,7 @@ __prepare_source_package()
load_helper epm-pack
# they will fill $returntarname
if rhas "$alpkg" "\.AppImage$" ; then
if rihas "$alpkg" "\.AppImage$" ; then
# big hack with $pkg_urls_downloaded (it can be a list, not a single url)
__epm_pack_run_handler generic-appimage "$pkg" "" "$pkg_urls_downloaded"
SUBGENERIC='appimage'
......
......@@ -795,7 +795,7 @@ get_package_type()
echo "msi"
return
;;
*.AppImage)
*.AppImage|*.appimage)
echo "AppImage"
return
;;
......
......@@ -7,6 +7,13 @@ URL="$4"
. $(dirname $0)/common.sh
# allow .appimage extension
if rhas "$TAR" "\.appimage$" ; then
newtarname="${TAR/.appimage/.AppImage}"
mv "$TAR" "$newtarname"
TAR="$newtarname"
fi
if ! rhas "$TAR" "\.AppImage$" ; then
fatal "No idea how to handle $TAR"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment