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

255 Commits

Author SHA1 Message Date
Tw93
9aa569cbb6 feat: Enhance clean, optimize, analyze, and status commands, and update security audit documentation. 2025-12-31 16:23:31 +08:00
Tw93
108563ed9b refactor: enhance install script robustness with improved error handling, option validation, and safer file operations, and add error checking for alias removal during uninstall. 2025-12-31 14:46:14 +08:00
Tw93
6cf6a995cd Fix: Improve Homebrew uninstallation feedback in 'mo remove'
When 'mole remove' is used and Mole was installed via Homebrew, the script
now provides more explicit feedback if the 'brew uninstall --force mole'
command fails. Previously, errors were silently ignored.

This change ensures that if Homebrew uninstallation encounters an issue,
the user is informed with the error output and instructed on how to
manually complete the uninstallation, preventing inconsistencies where
Homebrew still believes Mole is installed.

Additionally, a minor improvement to config_dir resolution in update_mole
was included for robustness.
2025-12-31 00:17:40 +08:00
Tw93
fff27a7578 1.17.0 2025-12-30 18:18:11 +08:00
Tw93
8711c5b5fc feat: add cloud storage protection and bump version to 1.16.2
- Protect Dropbox, OneDrive, Google Drive, Backblaze, Box (Issue #204)
- Add homebrew.mxcl.* services protection
- Document mo optimize --dry-run in help and README
- Bump version to 1.16.2
2025-12-30 14:38:22 +08:00
Tw93
0e6b595d8a chore: Bump version to 1.16.1 and refactor CI/CD to build separate macOS architectures with CGO enabled. 2025-12-29 20:52:13 +08:00
Tw93
3c38790d38 feat: bump version to 1.16.0 and normalize release tags in the installer for consistent version handling. 2025-12-29 20:31:14 +08:00
Tw93
3eccb7c094 feat: improve project clean module's common utility sourcing and bump version to 1.15.10 2025-12-29 20:26:16 +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
6328bf158d feat(purge): smart project discovery and optimization 2025-12-29 19:38:14 +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
c5910224ae Fix the problems of remove and reinstall 2025-12-29 15:51:15 +08:00
Tw93
c1e7290f4d 1.15.7 Repair and update check 2025-12-29 15:46:59 +08:00
Tw93
beaaa98c9b Tweak macOS update detection and bump version 2025-12-29 15:13:37 +08: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
6beca2f5fa fix: improve robustness of UI output commands by adding || true 2025-12-28 21:51:38 +08:00
Tw93
50e47a3cd9 chore: bump version to 1.15.3 and update the security audit report following core protection and file operation refinements. 2025-12-28 21:30:39 +08:00
Tw93
61069aff86 Bump version to 1.15.2 2025-12-28 19:34:45 +08:00
Tw93
ee5cfbfccf 1.15.1 2025-12-28 14:59:31 +08:00
Tw93
562759244f 1.15.0 2025-12-28 10:06:55 +08:00
Tw93
f2160b7cab chore: auto format code 2025-12-27 02:19:22 +00:00
Tw93
b0f6917fd9 Bump version to 1.14.7 and improve Homebrew installation detection logic 2025-12-27 10:18:12 +08:00
Tw93
a7c989588e improve code quality and fix signal handling 2025-12-26 20:34:38 +08:00
Tw93
04312962b2 1.14.5 2025-12-26 18:26:18 +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
8bd4147dc1 1.14.4 2025-12-25 11:53:05 +08:00
Tw93
6d66465447 refactor: Improve shell array expansion robustness in cleanup functions 2025-12-23 09:55:18 +08:00
Tw93
f410f356df feat: Display system, adapter, and battery power metrics in status view 2025-12-22 19:30:35 +08: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
8df29e33e6 chore: bump version to 1.14.0 2025-12-22 16:53:08 +08:00
Tw93
7e3daabcfb feat: Enhance file deletion safety with path protection, streamline update prompts, and remove automated Homebrew update checks. 2025-12-18 20:17:03 +08:00
Tw93
25f0fff91d fix: Refine recent items clearing to target specific global lists and prevent accidental deletion 2025-12-18 19:05:33 +08:00
Tw93
c1784f7aa4 refactor: improve clean item removal with safe_remove 2025-12-18 17:38:37 +08:00
Tw93
79e40b9c91 docs: Improve clarity and conciseness of comments and documentation 2025-12-18 17:35:54 +08:00
Tw93
8eeed7d079 feat(clean, optimize): enhance recent items cleanup safety 2025-12-18 17:19:18 +08:00
Tw93
456215f2ff Fix the setting panel cleaning issue 2025-12-18 15:20:26 +08:00
Tw93
9d72eab95a feat: add interactive purge command with comprehensive tests 2025-12-18 14:16:56 +08:00
Tw93
df7e5c8a04 feat: enhance system protection by adding critical path safeguards and removing problematic Spotlight and Finder/Dock cleanups. 2025-12-18 10:42:13 +08:00
Tw93
7e229bbf41 feat: Improve cleaning protection for system settings and control center, 2025-12-18 09:34:38 +08:00
Tw93
0427dbb6c0 feat: Expand critical system component protection in clean user logic and apply minor shell script fixes. 2025-12-17 20:42:25 +08:00
Tw93
34bdd14a6f feat: add purge command to clean project build artifacts and update clean dry-run message. 2025-12-17 20:35:45 +08:00
Tw93
694f5e76db chore: auto format code 2025-12-17 03:57:08 +00:00
Tw93
a667a1a777 feat: Bump version to 1.13.5, enhance show_version output, optimize software update checks, and add Touch ID for sudo as a security fix. 2025-12-17 11:56:39 +08:00
Tw93
be1027f9c3 refine sudo requirement checks for uninstallation. 2025-12-17 10:37:03 +08:00
Tw93
bde4e16a43 update 2025-12-16 18:03:14 +08:00
Tw93
019a0c63ff fix: Enhance sudo password input handling and expand tilde paths in maintenance. 2025-12-16 17:54:37 +08:00
Tw93
a77638da8d feat: Add com.apple.finder cache to cleaning, protect specific apps from critical cleaning, implement login item whitelist checks 2025-12-15 15:32:49 +08:00
Tw93
90d6e9b14b 1.13.0 2025-12-14 20:21:00 +08:00
Tw93
37c7b7e743 feat: Add AI agent documentation, expand critical application protection for AI/LLM tools, and enhance user cache cleaning safety 2025-12-14 08:53:19 +08:00