mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 16:49:41 +00:00
feat: add system maintenance cleanup module
- Add broken preferences detection using plutil -lint validation - Add broken login items cleanup (LaunchAgents pointing to missing files) - Add universal binary slimming (opt-in via MOLE_SLIM_BINARIES=true) - Protect Spotify cache if >500MB (likely contains offline music) - Warn when browsers are running before cache cleanup - All cleanup stats properly counted in final summary
This commit is contained in:
@@ -18,6 +18,7 @@ source "$SCRIPT_DIR/../lib/clean_dev.sh"
|
||||
source "$SCRIPT_DIR/../lib/clean_user_apps.sh"
|
||||
source "$SCRIPT_DIR/../lib/clean_system.sh"
|
||||
source "$SCRIPT_DIR/../lib/clean_user_data.sh"
|
||||
source "$SCRIPT_DIR/../lib/clean_maintenance.sh"
|
||||
|
||||
# Configuration
|
||||
SYSTEM_CLEAN=false
|
||||
@@ -832,6 +833,12 @@ perform_cleanup() {
|
||||
clean_time_machine_failed_backups
|
||||
end_section
|
||||
|
||||
# ===== 16. System maintenance =====
|
||||
start_section "System maintenance"
|
||||
# Broken preferences and login items cleanup (delegated to clean_maintenance module)
|
||||
clean_maintenance
|
||||
end_section
|
||||
|
||||
# ===== Final summary =====
|
||||
echo ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user