pi-apps icon indicating copy to clipboard operation
pi-apps copied to clipboard

Pi-Apps update.sh file

Open Sussy-OS opened this issue 2 years ago • 2 comments

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.

Sussy-OS avatar May 12 '22 19:05 Sussy-OS

Apps shouldn't remove user data at all.

Itai-Nelken avatar May 12 '22 19:05 Itai-Nelken

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

theofficialgman avatar May 12 '22 21:05 theofficialgman