fix(uninstall): 卸载时清理发布产物下载缓存

This commit is contained in:
Lemon-miaow committed 2026-09-26 15:23:53 +08:00
1 parent 56344f313b
commit 537639072a
2 files changed
+12

No files matched your search

+3
View File
@@ -333,6 +333,9 @@ remove_host_files() {
fi
rm -rf "$OPT_DIR"
rm -f "$HOST_BIN" "${HOST_BIN}.new" "${HOST_BIN}.prev"
# The release assets an install that stopped part way left for its rerun: downloads, not
# data, so keep-data mode drops them too.
rm -rf "${DATA_DIR}/artifacts"
remove_cloudflared_binary
if [ "$PURGE" = 0 ]; then
# What describes the removed install goes; what a reinstall reuses stays. Without