pi-apps
pi-apps copied to clipboard
Pi-Apps update.sh file
Cool ideas?
Every time I update an app that, when uninstalled, deletes data for space (Eg. Minecraft Java Server) I have to go through the whole process, adding a new world, setting up the .jar config or preferences. My suggestion is to add an update.sh so that apps that uninstall everything can update the correct way.
Apps shouldn't remove user data at all.
minecraft java server does not uninstall anything on update. the uninstall process is skipped. even on uninstall, world
, mods
, and versions
folders are skipped.
we also do not intend to update the install file for it either as it does not need updates to work on later versions. even if the install file was to be updated, you would only go through the prompts to re-download (or chose a new) version of the server jar
apps that wish to have different functionality on uninstall vs update can already do so as "update" is passed to the first argument when executing the uninstall file
if [[ "$1" != "update" ]];then
echo "Uninstall not skipped"
else
echo "Uninstall skipped because run from the updater"
fi