1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-08 02:44:21 +00:00

fix(uninstall): detect Zed HTTPStorages channel variants (#422)

This commit is contained in:
tw93
2026-02-07 10:38:17 +08:00
parent 1990b42524
commit 500ab2f568
2 changed files with 20 additions and 0 deletions

View File

@@ -997,6 +997,14 @@ find_app_files() {
)
fi
# Issue #422: Zed channel builds can leave data under another channel bundle id.
# Example: uninstalling dev.zed.Zed-Nightly should also detect dev.zed.Zed-Preview leftovers.
if [[ "$bundle_id" =~ ^dev\.zed\.Zed- ]] && [[ -d "$HOME/Library/HTTPStorages" ]]; then
while IFS= read -r -d '' zed_http_storage; do
files_to_clean+=("$zed_http_storage")
done < <(command find "$HOME/Library/HTTPStorages" -maxdepth 1 -name "dev.zed.Zed-*" -print0 2> /dev/null)
fi
# Process standard patterns
for p in "${user_patterns[@]}"; do
local expanded_path="${p/#\~/$HOME}"