mirror of
https://github.com/tw93/Mole.git
synced 2026-03-22 18:30:08 +00:00
fix: stop cleaning aerial wallpaper assets by default
This commit is contained in:
@@ -473,9 +473,6 @@ clean_support_app_data() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Clean old aerial wallpaper videos (can be large, safe to remove).
|
|
||||||
safe_clean ~/Library/Application\ Support/com.apple.wallpaper/aerials/videos/* "Aerial wallpaper videos"
|
|
||||||
|
|
||||||
# Do not touch Messages attachments, only preview/sticker caches.
|
# Do not touch Messages attachments, only preview/sticker caches.
|
||||||
if pgrep -x "Messages" > /dev/null 2>&1; then
|
if pgrep -x "Messages" > /dev/null 2>&1; then
|
||||||
echo -e " ${GRAY}${ICON_WARNING}${NC} Messages is running · preview cache cleanup skipped"
|
echo -e " ${GRAY}${ICON_WARNING}${NC} Messages is running · preview cache cleanup skipped"
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ EOF
|
|||||||
[[ "$output" == *"SPIN_START:Scanning app caches..."* ]]
|
[[ "$output" == *"SPIN_START:Scanning app caches..."* ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "clean_support_app_data targets crash, wallpaper, and messages preview caches only" {
|
@test "clean_support_app_data targets crash, idle assets, and messages preview caches only" {
|
||||||
local support_home="$HOME/support-cache-home-1"
|
local support_home="$HOME/support-cache-home-1"
|
||||||
run env HOME="$support_home" PROJECT_ROOT="$PROJECT_ROOT" bash --noprofile --norc <<'EOF'
|
run env HOME="$support_home" PROJECT_ROOT="$PROJECT_ROOT" bash --noprofile --norc <<'EOF'
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
@@ -141,6 +141,7 @@ EOF
|
|||||||
[ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
[[ "$output" == *"FIND:$support_home/Library/Application Support/CrashReporter:30:f"* ]]
|
[[ "$output" == *"FIND:$support_home/Library/Application Support/CrashReporter:30:f"* ]]
|
||||||
[[ "$output" == *"FIND:$support_home/Library/Application Support/com.apple.idleassetsd:30:f"* ]]
|
[[ "$output" == *"FIND:$support_home/Library/Application Support/com.apple.idleassetsd:30:f"* ]]
|
||||||
|
[[ "$output" != *"Aerial wallpaper videos"* ]]
|
||||||
[[ "$output" == *"Messages sticker cache"* ]]
|
[[ "$output" == *"Messages sticker cache"* ]]
|
||||||
[[ "$output" == *"Messages preview attachment cache"* ]]
|
[[ "$output" == *"Messages preview attachment cache"* ]]
|
||||||
[[ "$output" == *"Messages preview sticker cache"* ]]
|
[[ "$output" == *"Messages preview sticker cache"* ]]
|
||||||
|
|||||||
Reference in New Issue
Block a user