1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 19:44:44 +00:00
Commit Graph

421 Commits

Author SHA1 Message Date
Tw93
b5b09461c7 feat: add spinner feedback to optimization tasks, enhance app discovery for uninstall, and improve UI robustness and signal handling 2025-12-31 10:59:50 +08:00
Tw93
bb49ec3170 fix: Improve shell script robustness by adding variable validation and safer du output parsing. 2025-12-30 18:07:48 +08:00
Tw93
fcde129d2f fix: expand default whitelist patterns for accurate comparison and list all active patterns in dry-run output 2025-12-30 17:46:21 +08:00
Tw93
6c1fcd23d7 feat: optimize clean operation performance by pre-expanding whitelist patterns, improving size calculation, and adapting parallel processing based on file types, alongside test suite enhancements. 2025-12-30 17:13:43 +08:00
Tw93
41ce597f02 fix: improve CI stability and Bluetooth audio detection 2025-12-30 16:27:52 +08:00
Tw93
8e45da97b5 chore: auto format code 2025-12-30 07:45:31 +00:00
Tw93
08aec02283 fix: ensure 0KB files or du failures are still cleaned (potential under-cleaning fix)
- Refactor safe_clean to decouple deletion logic from size calculation
 - Attempt deletion for all existing paths, even if size is 0 or unknown
 - Correctly count failures only for files that existed but couldn't be removed
2025-12-30 15:02:35 +08:00
Tw93
1c4b033cf7 refactor: rename total_size_bytes to total_size_kb in clean.sh for clarity 2025-12-30 14:55:43 +08:00
Tw93
184aab5f60 feat: add --dry-run support for mo optimize
- Skip destructive operations (killall, launchctl unload, sudo) in dry-run mode
- Add opt_msg() helper for consistent output formatting
- Refactor opt_system_services_refresh() with service array
- Show appropriate summary for dry-run vs actual execution
- Skip sudo session prompt in dry-run mode
2025-12-30 14:38:09 +08:00
Tw93
34d202eb01 fix: resolve syntax error in size calculation (Issue #203)
- Add numeric validation for size variables in safe_clean()
- Fix get_path_size_kb() to handle non-numeric du output
- Display custom whitelist patterns in dry-run output (Issue #206)
2025-12-30 14:38:02 +08:00
Tw93
af61748977 release binaries via GH releases and update installer fallback 2025-12-29 20:23:11 +08:00
Tw93
7485af0bee chore: Remove --force-rescan option from uninstall command and script. 2025-12-29 19:40:09 +08:00
Tw93
bb83362195 feat(purge): add --paths option to configure scan directories
- Add lib/manage/purge_paths.sh for interactive path management
- Shows current paths status and opens editor for customization
- Update bin/purge.sh to handle --paths option
- Update README with new command
2025-12-29 19:23:54 +08:00
Tw93
bf36d3d6b6 chore: polish PR #197 and add Xcode Archives whitelist option
- Remove duplicate comment in project.sh
- Fix color code issue in purge.sh help message
- Add proper spacing after load_purge_config function
- Add shell syntax highlighting in README code block
- Add Xcode Archives to whitelist options (fixes #195)
2025-12-29 19:18:41 +08:00
Andrii Medvediev
7e62ed19f9 feat: add configurable purge paths (#197) 2025-12-29 19:16:16 +08:00
Tw93
44e91be007 feat: add new system optimization tasks and implement orphaned startup item cleanup 2025-12-29 19:06:04 +08:00
Tw93
2b30a24ffc chore: update binaries for V1.15.8 2025-12-29 07:52:26 +00:00
Tw93
9691b0fd8b chore: update binaries for V1.15.7 2025-12-29 07:48:12 +00:00
Tw93
b787c78b37 chore: update binaries for V1.15.6 2025-12-29 07:39:38 +00:00
Tw93
a9e4c7c08e Optimize security fix prompts and auto-fix flow 2025-12-29 15:14:23 +08:00
Tw93
2a6930388f Align Touch ID enable output with log_success 2025-12-29 15:13:47 +08:00
Tw93
694c55f73b fix: implement layered error tolerance and accurate cleanup reporting (#175 #176 #180)
- Fix safe_remove set -e trap in command substitution
  - Fix has_full_disk_access false positives and unknown state handling
  - Use set +e in perform_cleanup for graceful degradation
  - Track removal failures and only count actually deleted items (#180)
  - Add "Skipped X items (permission denied or in use)" notification
  - Improve spinner reliability with cooperative stop mechanism (#175)
2025-12-29 14:27:47 +08:00
Tw93
55a0aa5a0a chore: update binaries for V1.15.5 2025-12-28 16:30:53 +00:00
Tw93
b67204f959 feat: remove SQLite vacuum optimization, enhance CJK/emoji width calculation, and improve system cleanup and UI feedback. 2025-12-29 00:29:42 +08:00
Tw93
63b915b234 chore: update binaries for V1.15.4 2025-12-28 13:53:38 +00:00
Tw93
7be21f4c5c chore: update binaries for V1.15.3 2025-12-28 13:33:28 +00:00
Tw93
7e402e7f2f chore: update binaries for V1.15.2 2025-12-28 12:19:43 +00:00
Tw93
4a626f9337 Optimize unit tests and check for errors 2025-12-28 19:59:44 +08:00
Tw93
da1b5cb8d4 Merge branch 'main' of github.com:tw93/Mole 2025-12-28 19:39:01 +08:00
Tw93
52d50a0a80 Improve spinner subprocess and trap cleanup handling 2025-12-28 19:35:29 +08:00
Tw93
7b96c18e28 chore: update binaries for V1.15.1 2025-12-28 07:02:00 +00:00
Tw93
9fca199727 chore: update binaries for V1.15.0 2025-12-28 02:08:23 +00:00
Tw93
504eda835f fix: Update firewall management to use socketfilterfw for improved reliability on macOS. 2025-12-28 09:39:53 +08:00
Tw93
c8e33931c2 refactor: centralize whitelist path checking with a new is_path_whitelisted helper function 2025-12-28 09:21:04 +08:00
Tw93
2dd56608e7 chore: update binaries for V1.14.7 2025-12-27 05:17:19 +00:00
Tw93
4c7fa894e1 Simplify system check output structure and remove redundant section headers 2025-12-27 10:16:08 +08:00
Tw93
36e480333b Add inline spinners for better UI feedback and integrate recent items cleanup into the main flow. 2025-12-27 10:15:58 +08:00
Tw93
dbdb3d896d Merge branch 'main' of github.com:tw93/Mole 2025-12-26 20:35:12 +08:00
Tw93
a7c989588e improve code quality and fix signal handling 2025-12-26 20:34:38 +08:00
Tw93
1af4055462 chore: update binaries for V1.14.5 2025-12-26 10:46:04 +00:00
Tw93
2c23d15eb7 Clean performance speed optimization 2025-12-26 18:25:38 +08:00
Luke Bullimore
785032635a feat: harden user file handling and gate LaunchServices rebuild (#159)
- add ensure_user_dir/ensure_user_file helpers in lib/core/base.sh, including
  sudo-aware ownership correction under the invoking user’s home
- use the helpers across clean/optimize/purge/uninstall/whitelist to create
  cache and export files safely (no naked mkdir/touch), including log files and
  dry-run exports
- ensure purge stats/count files and update message caches are pre-created with
  safe permissions
- add Darwin version helpers and skip LaunchServices/dyld rebuild on macOS 15+,
  keeping the existing corruption protection for earlier versions
- guard brew cache timestamp writes and TCC permission flags with safe file
  creation to avoid root-owned artifacts
2025-12-26 10:54:56 +08:00
Tw93
b09b771dfe chore: update binaries for V1.14.4 2025-12-25 03:55:31 +00:00
Tw93
2ecae62d57 chore: update binaries for V1.14.3 2025-12-23 01:57:36 +00:00
Tw93
275458bd86 chore: update binaries for V1.14.2 2025-12-22 11:32:05 +00:00
Tw93
f410f356df feat: Display system, adapter, and battery power metrics in status view 2025-12-22 19:30:35 +08:00
Tw93
81d4f7cb08 chore: update binaries for V1.14.1 2025-12-22 10:55:07 +00:00
Tw93
9a942a2770 feat: Add configurable project cleanup depth, refine interactive menu display, and sanitize uninstall app names. 2025-12-22 18:53:48 +08:00
Tw93
bf04f752d2 chore: update binaries for V1.14.0 2025-12-22 09:14:53 +00:00
Tw93
d5c41a6fb7 chore: Remove whitelist skipped count from clean script output summaries. 2025-12-22 16:57:25 +08:00