Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-hc authored Jan 6, 2022
1 parent 0cf6fcb commit fc4620b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions APP-MANAGER
Original file line number Diff line number Diff line change
Expand Up @@ -210,22 +210,23 @@ case "$1" in
*) for var in $2
do cd $(xdg-user-dir DESKTOP)
echo ""
echo " EACH TEMPLATE IS BASED ON THE METHOD IN WHICH THE PROGRAM"
echo " IS BUILT AND/OR UPDATED:"

echo " EACH MODEL IS BASED ON A DIFFERENT METHOD OF BUILDING/UPDATING THE PROGRAM:"
echo ""
echo " 1) My AppImage uses AppimageUpdate"
echo " 2) My AppImage uses a separated zsync file"
echo " 3) My package/AppImage come from a site or repository"
echo " 4) My AppImage is built with pkg2appimage & appimagetool"
echo " 5) My AppImage has a linear URL to the latest version"
echo " 6) My AppImage has a version number in the URL for the latest version"
echo " "
echo " WHAT KIND OF PROGRAM DO YOU WANT TO WRITE A SCRIPT FOR?"
echo ""
read -r -p " Please only choose one option between 1, 2, 3 and 4 : " response
read -r -p " WHAT KIND OF PROGRAM DO YOU WANT TO WRITE A SCRIPT FOR? : " response
case "$response" in
1) wget -c $URL/templates/AM-SAMPLE-for-appimageupdate -O $2.AM && sed -i s/SAMPLE/$2/g $2.AM;;
2) wget -c $URL/templates/AM-SAMPLE-for-zsync -O $2.AM && sed -i s/SAMPLE/$2/g $2.AM;;
3) wget -c $URL/templates/AM-SAMPLE-from-site -O $2.AM && sed -i s/SAMPLE/$2/g $2.AM;;
4) wget -c $URL/templates/AM-SAMPLE-pkg2appimage -O $2.AM && sed -i s/SAMPLE/$2/g $2.AM;;
5) wget -c $URL/templates/AM-SAMPLE-appimage-download-simple -O $2.AM && sed -i s/SAMPLE/$2/g $2.AM;;
6) wget -c $URL/templates/AM-SAMPLE-appimage-download-by-version -O $2.AM && sed -i s/SAMPLE/$2/g $2.AM;;
*) echo ""; echo " No valid argument was chosen: process aborted! "; echo ""; exit;;
esac
done
Expand Down Expand Up @@ -294,6 +295,6 @@ case "$1" in
fi
done
shift;;
'version'|'-v'|'--version') echo "2.1.0";;
'version'|'-v'|'--version') echo "2.1.1";;
*) exec /opt/am/APP-MANAGER ;;
esac

0 comments on commit fc4620b

Please sign in to comment.