Skip to content

GitDzreal93/clean-your-mac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงน CleanYourMac

ๆ™บ่ƒฝMacๆธ…็†ๅทฅๅ…ท - AI้ฉฑๅŠจ็š„็ฃ็›˜็ฉบ้—ดไผ˜ๅŒ–่งฃๅ†ณๆ–นๆกˆ

License: MIT Platform: macOS Built with Tauri React TypeScript

English | ไธญๆ–‡


๐ŸŒŸ ๅŠŸ่ƒฝ็‰น่‰ฒ

๐Ÿค– AIๆ™บ่ƒฝๅˆ†ๆž

  • ๆ™บ่ƒฝ็ฃ็›˜ๅˆ†ๆž: ๅŸบไบŽAI็š„ๅญ˜ๅ‚จ็ฉบ้—ดๅˆ†ๆžๅ’Œไผ˜ๅŒ–ๅปบ่ฎฎ
  • ไธชๆ€งๅŒ–ๆธ…็†ๆ–นๆกˆ: ๆ นๆฎไฝฟ็”จไน ๆƒฏๆไพ›ๅฎšๅˆถๅŒ–ๆธ…็†็ญ–็•ฅ
  • ้ฃŽ้™ฉ่ฏ„ไผฐ: ๆ™บ่ƒฝ่ฏ„ไผฐๆธ…็†ๆ“ไฝœ็š„ๅฎ‰ๅ…จๆ€ง

๐Ÿ“ธ ๅฟซ็…ง็ฎก็†

  • ๆ™บ่ƒฝๅฟซ็…งๅˆ†็ฑป: ่‡ชๅŠจๅŒบๅˆ†็ณป็ปŸๆ›ดๆ–ฐๅฟซ็…งๅ’Œๆ—ถ้—ดๆœบๅ™จๅฟซ็…ง
  • ๅฎ‰ๅ…จๆธ…็†: ไฝฟ็”จtmutil thinlocalsnapshotsๅฎ‰ๅ…จๆธ…็†ๆ—ถ้—ดๆœบๅ™จๅฟซ็…ง
  • ็ฉบ้—ด้ข„ไผฐ: ๅ‡†็กฎไผฐ็ฎ—ๅฟซ็…งๅ ็”จ็š„็ฃ็›˜็ฉบ้—ด

๐ŸŽฏ ็ฒพๅ‡†ๆธ…็†

  • ๅคš็ฑปๅž‹ๆ–‡ไปถๆธ…็†: ็ผ“ๅญ˜ใ€ๆ—ฅๅฟ—ใ€ไธดๆ—ถๆ–‡ไปถใ€ไธ‹่ฝฝๆ–‡ไปถ็ญ‰
  • ็™ฝๅๅ•ไฟๆŠค: ไฟๆŠค้‡่ฆๆ–‡ไปถๅ’Œๅบ”็”จไธ่ขซ่ฏฏๅˆ 
  • ๅฎžๆ—ถ่ฟ›ๅบฆ: ๆธ…็†่ฟ‡็จ‹ๅฏ่ง†ๅŒ–๏ผŒๅฎžๆ—ถๆ˜พ็คบ่ฟ›ๅบฆๅ’Œ็ป“ๆžœ

๐ŸŽจ ็ŽฐไปฃๅŒ–็•Œ้ข

  • ็พŽ่ง‚UI: ๅŸบไบŽAnt Design็š„็ŽฐไปฃๅŒ–็•Œ้ข่ฎพ่ฎก
  • ๆต็•…ไฝ“้ชŒ: React + TypeScriptๆž„ๅปบ็š„ๅ“ๅบ”ๅผ็”จๆˆท็•Œ้ข
  • ๅŽŸ็”Ÿๆ€ง่ƒฝ: Tauriๆก†ๆžถๆไพ›็š„ๅŽŸ็”Ÿๅบ”็”จๆ€ง่ƒฝ

๐Ÿš€ ๅฟซ้€Ÿๅผ€ๅง‹

็ณป็ปŸ่ฆๆฑ‚

  • macOS 10.15 ๆˆ–ๆ›ด้ซ˜็‰ˆๆœฌ
  • ่‡ณๅฐ‘ 100MB ๅฏ็”จ็ฃ็›˜็ฉบ้—ด

ๅฎ‰่ฃ…ๆ–นๅผ

ๆ–นๅผไธ€๏ผšไธ‹่ฝฝ้ข„็ผ–่ฏ‘็‰ˆๆœฌ

  1. ๅ‰ๅพ€ Releases ้กต้ข
  2. ไธ‹่ฝฝๆœ€ๆ–ฐ็‰ˆๆœฌ็š„ .dmg ๆ–‡ไปถ
  3. ๅŒๅ‡ปๅฎ‰่ฃ…ๅŒ…ๅนถๆ‹–ๆ‹ฝๅˆฐๅบ”็”จ็จ‹ๅบๆ–‡ไปถๅคน

ๆ–นๅผไบŒ๏ผšไปŽๆบ็ ๆž„ๅปบ

# ๅ…‹้š†ไป“ๅบ“
git clone https://github.com/GitDzreal93/clean-your-mac.git
cd clean-your-mac

# ๅฎ‰่ฃ…ไพ่ต–
pnpm install

# ๅผ€ๅ‘ๆจกๅผ่ฟ่กŒ
pnpm run tauri dev

# ๆž„ๅปบ็”Ÿไบง็‰ˆๆœฌ
pnpm run tauri build

๐Ÿ› ๏ธ ๆŠ€ๆœฏๆ ˆ

  • ๅ‰็ซฏๆก†ๆžถ: React 19.1.0 + TypeScript
  • UI็ป„ไปถๅบ“: Ant Design 5.27.0
  • ๆกŒ้ขๆก†ๆžถ: Tauri 2.x
  • ๅŽ็ซฏ่ฏญ่จ€: Rust
  • ็Šถๆ€็ฎก็†: Zustand
  • ๅ›พ่กจๅบ“: ECharts
  • ๆž„ๅปบๅทฅๅ…ท: Vite

๐Ÿ“ฑ ไฝฟ็”จๆˆชๅ›พ

ไธป็•Œ้ข

ไธป็•Œ้ข

AIๅˆ†ๆžๆŠฅๅ‘Š

ๅˆ†ๆžๆŠฅๅ‘Š

ๆธ…็†็ป“ๆžœ

ๆธ…็†็ป“ๆžœ

ๅบ”็”จ่ฎพ็ฝฎ

ๅบ”็”จ่ฎพ็ฝฎ

๐Ÿ”ง ๅผ€ๅ‘ๆŒ‡ๅ—

็Žฏๅขƒๅ‡†ๅค‡

# ๅฎ‰่ฃ… Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# ๅฎ‰่ฃ… Node.js (ๆŽจ่ไฝฟ็”จ nvm)
nvm install 18
nvm use 18

# ๅฎ‰่ฃ… pnpm
npm install -g pnpm

# ๅฎ‰่ฃ… Tauri CLI
cargo install tauri-cli

้กน็›ฎ็ป“ๆž„

clean-your-mac/
โ”œโ”€โ”€ src/                    # React ๅ‰็ซฏๆบ็ 
โ”‚   โ”œโ”€โ”€ components/         # React ็ป„ไปถ
โ”‚   โ”œโ”€โ”€ services/          # ไธšๅŠก้€ป่พ‘ๆœๅŠก
โ”‚   โ”œโ”€โ”€ types/             # TypeScript ็ฑปๅž‹ๅฎšไน‰
โ”‚   โ””โ”€โ”€ assets/            # ้™ๆ€่ต„ๆบ
โ”œโ”€โ”€ src-tauri/             # Tauri ๅŽ็ซฏๆบ็ 
โ”‚   โ”œโ”€โ”€ src/               # Rust ๆบ็ 
โ”‚   โ”œโ”€โ”€ icons/             # ๅบ”็”จๅ›พๆ ‡
โ”‚   โ””โ”€โ”€ Cargo.toml         # Rust ไพ่ต–้…็ฝฎ
โ”œโ”€โ”€ public/                # ๅ…ฌๅ…ฑ้™ๆ€ๆ–‡ไปถ
โ””โ”€โ”€ dist/                  # ๆž„ๅปบ่พ“ๅ‡บ็›ฎๅฝ•

ๅผ€ๅ‘ๅ‘ฝไปค

# ๅฏๅŠจๅผ€ๅ‘ๆœๅŠกๅ™จ
pnpm run tauri dev

# ๆž„ๅปบๅ‰็ซฏ
pnpm run build

# ๆž„ๅปบๅบ”็”จ
pnpm run tauri build

# ็ฑปๅž‹ๆฃ€ๆŸฅ
pnpm run type-check

๐Ÿค ่ดก็ŒฎๆŒ‡ๅ—

ๆˆ‘ไปฌๆฌข่ฟŽๆ‰€ๆœ‰ๅฝขๅผ็š„่ดก็Œฎ๏ผ่ฏทๆŸฅ็œ‹ CONTRIBUTING.md ไบ†่งฃ่ฏฆ็ป†ไฟกๆฏใ€‚

่ดก็Œฎๆ–นๅผ

  1. Fork ๆœฌไป“ๅบ“
  2. ๅˆ›ๅปบ็‰นๆ€งๅˆ†ๆ”ฏ (git checkout -b feature/AmazingFeature)
  3. ๆไบคๆ›ดๆ”น (git commit -m 'Add some AmazingFeature')
  4. ๆŽจ้€ๅˆฐๅˆ†ๆ”ฏ (git push origin feature/AmazingFeature)
  5. ๅˆ›ๅปบ Pull Request

๐Ÿ’– ๆ”ฏๆŒ

ๅฆ‚ๆžœ่ฟ™ไธช้กน็›ฎๅฏนไฝ ๆœ‰ๅธฎๅŠฉ๏ผŒ่ฏท่€ƒ่™‘ๆ”ฏๆŒไธ€ไธ‹๏ผไฝ ็š„ๆ”ฏๆŒๆ˜ฏๆˆ‘ไปฌๆŒ็ปญๆ”น่ฟ›็š„ๅŠจๅŠ›ใ€‚

Buy Me A Coffee

Buy Me A Coffee

ๆˆ–่€…ๆ‰ซๆไบŒ็ปด็ :

Buy Me A Coffee QR Code

ๅพฎไฟก่ตž่ต:

ๅพฎไฟก่ตž่ต็ 

๐Ÿ“„ ่ฎธๅฏ่ฏ

ๆœฌ้กน็›ฎ้‡‡็”จ MIT ่ฎธๅฏ่ฏ - ๆŸฅ็œ‹ LICENSE ๆ–‡ไปถไบ†่งฃ่ฏฆๆƒ…ใ€‚

๐Ÿ™ ่‡ด่ฐข

  • Tauri - ่ทจๅนณๅฐๆกŒ้ขๅบ”็”จๆก†ๆžถ
  • React - ็”จๆˆท็•Œ้ขๅบ“
  • Ant Design - ไผไธš็บงUI่ฎพ่ฎก่ฏญ่จ€
  • Rust - ็ณป็ปŸ็ผ–็จ‹่ฏญ่จ€

๐Ÿ“ž ่”็ณปๆˆ‘ไปฌ


ๅฆ‚ๆžœ่ฟ™ไธช้กน็›ฎๅฏนไฝ ๆœ‰ๅธฎๅŠฉ๏ผŒ่ฏท็ป™ๆˆ‘ไปฌไธ€ไธช โญ๏ธ


English

๐ŸŒŸ Features

๐Ÿค– AI-Powered Analysis

  • Intelligent Disk Analysis: AI-driven storage space analysis and optimization recommendations
  • Personalized Cleanup Plans: Customized cleaning strategies based on usage patterns
  • Risk Assessment: Smart evaluation of cleanup operation safety

๐Ÿ“ธ Snapshot Management

  • Smart Snapshot Classification: Automatically distinguish between system update snapshots and Time Machine snapshots
  • Safe Cleanup: Use tmutil thinlocalsnapshots for secure Time Machine snapshot cleanup
  • Space Estimation: Accurate estimation of disk space occupied by snapshots

๐ŸŽฏ Precise Cleaning

  • Multi-type File Cleanup: Cache, logs, temporary files, downloads, and more
  • Whitelist Protection: Protect important files and applications from accidental deletion
  • Real-time Progress: Visualized cleanup process with real-time progress and results

๐ŸŽจ Modern Interface

  • Beautiful UI: Modern interface design based on Ant Design
  • Smooth Experience: Responsive user interface built with React + TypeScript
  • Native Performance: Native application performance provided by Tauri framework

๐Ÿš€ Quick Start

System Requirements

  • macOS 10.15 or later
  • At least 100MB available disk space

Installation Methods

Method 1: Download Pre-compiled Version
  1. Go to Releases page
  2. Download the latest .dmg file
  3. Double-click the installer and drag to Applications folder
Method 2: Build from Source
# Clone repository
git clone https://github.com/GitDzreal93/clean-your-mac.git
cd clean-your-mac

# Install dependencies
pnpm install

# Run in development mode
pnpm run tauri dev

# Build for production
pnpm run tauri build

๐Ÿ› ๏ธ Tech Stack

  • Frontend Framework: React 19.1.0 + TypeScript
  • UI Component Library: Ant Design 5.27.0
  • Desktop Framework: Tauri 2.x
  • Backend Language: Rust
  • State Management: Zustand
  • Chart Library: ECharts
  • Build Tool: Vite

๐Ÿ“ฑ Screenshots

Home Interface

Home Interface

AI Analysis Report

Analysis Report

Cleanup Results

Cleanup Results

Application Settings

Application Settings

๐Ÿ”ง Development Guide

Environment Setup

# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# Install Node.js (recommended using nvm)
nvm install 18
nvm use 18

# Install pnpm
npm install -g pnpm

# Install Tauri CLI
cargo install tauri-cli

Project Structure

clean-your-mac/
โ”œโ”€โ”€ src/                    # React frontend source code
โ”‚   โ”œโ”€โ”€ components/         # React components
โ”‚   โ”œโ”€โ”€ services/          # Business logic services
โ”‚   โ”œโ”€โ”€ types/             # TypeScript type definitions
โ”‚   โ””โ”€โ”€ assets/            # Static resources
โ”œโ”€โ”€ src-tauri/             # Tauri backend source code
โ”‚   โ”œโ”€โ”€ src/               # Rust source code
โ”‚   โ”œโ”€โ”€ icons/             # Application icons
โ”‚   โ””โ”€โ”€ Cargo.toml         # Rust dependency configuration
โ”œโ”€โ”€ public/                # Public static files
โ””โ”€โ”€ dist/                  # Build output directory

Development Commands

# Start development server
pnpm run tauri dev

# Build frontend
pnpm run build

# Build application
pnpm run tauri build

# Type checking
pnpm run type-check

๐Ÿค Contributing

We welcome all forms of contributions! Please see CONTRIBUTING.md for details.

How to Contribute

  1. Fork this repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Create a Pull Request

โ˜• Support

If you find this project helpful, consider buying me a coffee! Your support helps keep this project alive and growing.

Buy Me A Coffee

Buy Me A Coffee

Or scan the QR code:

Buy Me A Coffee QR Code

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • Tauri - Cross-platform desktop application framework
  • React - User interface library
  • Ant Design - Enterprise-class UI design language
  • Rust - Systems programming language

๐Ÿ“ž Contact Us


If this project helps you, please give us a โญ๏ธ

Made with โค๏ธ for Mac users worldwide

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages