1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-05 21:23:00 +00:00
Commit Graph

15 Commits

Author SHA1 Message Date
Tw93
cb538b5355 feat: optimize user file handling with early exit for chown, improve Darwin version detection fallback, and add comprehensive tests for user file and Darwin utilities 2025-12-26 15:01:12 +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
79e40b9c91 docs: Improve clarity and conciseness of comments and documentation 2025-12-18 17:35:54 +08:00
Tw93
af03452f6d feat: Enhance clean and optimize operations with new configuration constants 2025-12-18 17:02:04 +08:00
Tw93
3053e05ce4 chore: auto format code 2025-12-17 02:37:33 +00:00
Tw93
be1027f9c3 refine sudo requirement checks for uninstallation. 2025-12-17 10:37:03 +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
67a8e83511 chore: Exclude JetBrains caches from cleaning 2025-12-12 16:04:38 +08:00
github-actions[bot]
5b73e4ffad chore: auto format code 2025-12-10 03:53:17 +00:00
Tw93
def494b282 Christmas eggs 2025-12-10 10:27:45 +08:00
Tw93
4ff8c3afa3 Fix support for BSD and GNU mktemp 2025-12-10 10:02:27 +08:00
Tw93
88c5f92ac4 format 2025-12-08 18:59:52 +08:00
Tw93
03385c98bc Safety reinforcement 2025-12-08 17:50:46 +08:00
Tw93
51decd1091 Optimize supports setting whitelist 2025-12-08 16:51:25 +08:00
Tw93
80e3be710b Restructure common split content 2025-12-08 15:33:52 +08:00