preserve installed apps during launcher updates

This commit is contained in:
2026-07-10 15:24:40 +09:00
parent 37fd0dd352
commit 863d675270
2 changed files with 13 additions and 17 deletions
+5 -17
View File
@@ -11,24 +11,12 @@ cleanup_managed_tailscale() {
rm -f "$marker"
}
cleanup_apps_dir() {
apps_dir="$1/.local/share/autonomy-studio/apps"
[ -d "$apps_dir" ] || return 0
find "$apps_dir" -maxdepth 1 -type f \( \
-name "*.AppImage" -o \
-name "*.AppImage.version" -o \
-name "*.download" \
\) -delete
rmdir "$apps_dir" 2>/dev/null || true
}
case "$1" in
upgrade|failed-upgrade|abort-install|abort-upgrade)
exit 0
;;
esac
cleanup_managed_tailscale
for home_dir in /home/*; do
[ -d "$home_dir" ] || continue
cleanup_apps_dir "$home_dir"
done
exit 0