Free, open-source macOS cleaner. CleanMyMac alternative with zero telemetry. Native SwiftUI, scheduled auto-cleaning, Xcode/Homebrew/system cache cleanup. MIT licensed.
Swift cache-cleanercleanmymaccleanupdisk-cleanerdisk-spacehomebrewmac-utilitymacosmacos-appmacos-cleanermacosxnativeossosxprivacyswiftswiftuisystem-cleanerxcode-cleaner
feat: add CI, issue templates, contributing guide, and README overhaul
moamen77a824d43203
diff --git a/.github/FUNDING.yml b/.github/FUNDING.ymlnew file mode 100644index 0000000..1e46d37--- /dev/null+++ b/.github/FUNDING.yml@@ -0,0 +1 @@+github: momenbaseldiff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.mdnew file mode 100644index 0000000..cab2d3f--- /dev/null+++ b/.github/ISSUE_TEMPLATE/bug_report.md@@ -0,0 +1,27 @@+---+name: Bug Report+about: Report a bug or unexpected behavior+title: "[Bug] "+labels: bug+assignees: ''+---++**Describe the bug**+A clear description of what the bug is.++**To reproduce**+Steps to reproduce the behavior:+1. Go to '...'+2. Click on '...'+3. See error++**Expected behavior**+What you expected to happen.++**Screenshots**+If applicable, add screenshots.++**Environment**+- macOS version:+- PureMac version:+- Install method: (Homebrew / DMG / App Store / Source)diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.mdnew file mode 100644index 0000000..5fe0457--- /dev/null+++ b/.github/ISSUE_TEMPLATE/feature_request.md@@ -0,0 +1,16 @@+---+name: Feature Request+about: Suggest a new feature or improvement+title: "[Feature] "+labels: enhancement+assignees: ''+---++**What would you like?**+A clear description of the feature.++**Why is this useful?**+Describe the use case and who benefits.++**Alternatives considered**+Any other approaches you've thought about.diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.mdnew file mode 100644index 0000000..5adc74a--- /dev/null+++ b/.github/PULL_REQUEST_TEMPLATE.md@@ -0,0 +1,22 @@+## What does this PR do?++<!-- Brief description of the change -->++## Type of change++- [ ] Bug fix+- [ ] New feature+- [ ] Performance improvement+- [ ] UI/UX enhancement+- [ ] Documentation+- [ ] Other (describe)++## Testing++- [ ] Tested on macOS Ventura (13.x)+- [ ] Tested on macOS Sonoma (14.x)+- [ ] Tested on macOS Sequoia (15.x)++## Screenshots++<!-- If applicable, add screenshots -->diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlnew file mode 100644index 0000000..cbcd0f9--- /dev/null+++ b/.github/workflows/build.yml@@ -0,0 +1,30 @@+name: Build++on:+ push:+ branches: [main]+ pull_request:+ branches: [main]++jobs:+ build:+ runs-on: macos-14+ steps:+ - uses: actions/checkout@v4++ - name: Install XcodeGen+ run: brew install xcodegen++ - name: Generate Xcode project+ run: xcodegen generate++ - name: Build+ run: |+ xcodebuild -project PureMac.xcodeproj \+ -scheme PureMac \+ -configuration Release \+ -derivedDataPath build \+ build \+ CODE_SIGN_IDENTITY="" \+ CODE_SIGNING_REQUIRED=NO \+ CODE_SIGNING_ALLOWED=NOdiff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdnew file mode 100644index 0000000..c152388--- /dev/null+++ b/CONTRIBUTING.md@@ -0,0 +1,52 @@+# Contributing to PureMac++Thanks for your interest in contributing to PureMac.++## Getting Started++1. Fork the repo+2. Clone your fork: `git clone https://github.com/YOUR_USERNAME/PureMac.git`+3. Install prerequisites: `brew install xcodegen`+4. Generate the Xcode project: `xcodegen generate`+5. Open in Xcode: `open PureMac.xcodeproj`++## Development++- PureMac is built with **SwiftUI** and targets **macOS 13.0+**+- Project structure is defined in `project.yml` (XcodeGen)+- Run the app from Xcode with Cmd+R++## Pull Requests++- Keep PRs focused on a single change+- Test your changes on at least macOS Ventura (13.0)+- Follow existing code style+- Update the README if your change affects user-facing behavior++## What to Contribute++- Bug fixes+- New cleaning categories+- Performance improvements+- UI/UX enhancements+- Localization (translations)+- Documentation improvements++## Reporting Bugs++Open an issue using the **Bug Report** template. Include:+- macOS version+- PureMac version+- Steps to reproduce+- Expected vs actual behavior++## Feature Requests++Open an issue using the **Feature Request** template. Describe:+- What you'd like to see+- Why it would be useful+- Any alternatives you've considered++## Code of Conduct++Be respectful and constructive. We're all here to make Mac maintenance easier for everyone.diff --git a/README.md b/README.mdindex 9be4055..798d855 100644--- a/README.md+++ b/README.md@@ -1,31 +1,43 @@-# PureMac--A free, open-source macOS cleaning utility. Keep your Mac fast, clean, and optimized.------## Features--- **Smart Scan** - Scan all categories at once with a single click-- **System Junk** - Clean system caches, logs, and temporary files-- **User Cache** - Remove application caches and browser data-- **Mail Attachments** - Clear downloaded mail attachments-- **Trash Bins** - Empty your Trash-- **Large & Old Files** - Find files over 100 MB or older than 1 year-- **Purgeable Space** - Purge APFS purgeable disk space (Time Machine snapshots)-- **Xcode Junk** - Clean derived data, archives, and simulator caches-- **Homebrew Cache** - Clear Homebrew download cache-- **Scheduled Cleaning** - Automatic scans on configurable intervals (hours/days/weeks)-- **Auto-Purge** - Automatically purge purgeable files on schedule-- **Click-to-inspect** - Click any category to see exactly what will be removed--## Screenshots--| Smart Scan | Category Detail |-|---|---|-|  |  |+<p align="center">+ <img src="screenshot.png" alt="PureMac" width="700">+</p>++<h1 align="center">PureMac</h1>++<p align="center">+ <b>Free, open-source macOS cleaner.</b> The CleanMyMac alternative that respects your privacy.<br>+ No subscriptions. No telemetry. No data collection. Just a clean Mac.+</p>++<p align="center">+ <a href="https://github.com/momenbasel/PureMac/releases/latest"><img src="https://img.shields.io/github/v/release/momenbasel/PureMac?style=flat-square&label=Download" alt="Latest Release"></a>+ <a href="https://github.com/momenbasel/PureMac/actions/workflows/build.yml"><img src="https://img.shields.io/github/actions/workflow/status/momenbasel/PureMac/build.yml?style=flat-square&label=Build" alt="Build Status"></a>+ <img src="https://img.shields.io/badge/macOS-13.0+-blue?style=flat-square" alt="macOS 13.0+">+ <img src="https://img.shields.io/badge/Swift-5.9-orange?style=flat-square" alt="Swift 5.9">+ <a href="LICENSE"><img src="https://img.shields.io/github/license/momenbasel/PureMac?style=flat-square" alt="MIT License"></a>+ <a href="https://github.com/momenbasel/PureMac/stargazers"><img src="https://img.shields.io/github/stars/momenbasel/PureMac?style=flat-square" alt="Stars"></a>+ <a href="https://github.com/momenbasel/PureMac/releases"><img src="https://img.shields.io/github/downloads/momenbasel/PureMac/total?style=flat-square&label=Downloads" alt="Downloads"></a>+</p>++<p align="center">+ <a href="#install">Install</a> -+ <a href="#features">Features</a> -+ <a href="#screenshots">Screenshots</a> -+ <a href="#comparison">Comparison</a> -+ <a href="#contributing">Contributing</a>+</p>++---++## Why PureMac?++Most Mac cleaning apps cost $30-50/year, collect usage data, and show upsell popups. PureMac does the same job for free, runs entirely offline, and the source code is right here for you to audit.++- **100% free** - no trial, no premium tier, no subscriptions+- **100% private** - no analytics, no telemetry, no network calls+- **100% native** - built with SwiftUI, no Electron, no web views+- **100% open source** - MIT licensed, audit the code yourself+- **Signed & notarized** - Apple Developer ID, no Gatekeeper warnings## Install@@ -38,33 +50,66 @@ brew install --cask puremac### Direct Download-Download the latest `.app` from [Releases](https://github.com/momenbasel/PureMac/releases), unzip, and drag to `/Applications`.+Download the latest `.app` from [Releases](https://github.com/momenbasel/PureMac/releases/latest), unzip, and drag to `/Applications`.-> The app is signed and notarized with Apple Developer ID - no security warnings on download.+> Signed and notarized with Apple Developer ID - installs without security warnings.### Mac App Store-PureMac is also available on the [Mac App Store](https://apps.apple.com/app/puremac/id6761837287) (pending review).+<a href="https://apps.apple.com/app/puremac/id6761837287">+ <img src="https://developer.apple.com/assets/elements/badges/download-on-the-mac-app-store.svg" alt="Download on the Mac App Store" height="48">+</a>### Build from source```bash-# Prerequisitesbrew install xcodegen--# Clone and buildgit clone https://github.com/momenbasel/PureMac.gitcd PureMacxcodegen generatexcodebuild -project PureMac.xcodeproj -scheme PureMac -configuration Release -derivedDataPath build build--# Runopen build/Build/Products/Release/PureMac.app--# Or open in Xcode-open PureMac.xcodeproj```+## Features++- **Smart Scan** - One-click scan across all categories+- **System Junk** - System caches, logs, and temporary files+- **User Cache** - Application caches and browser data+- **Mail Attachments** - Downloaded mail attachments+- **Trash Bins** - Empty all Trash bins+- **Large & Old Files** - Files over 100 MB or older than 1 year+- **Purgeable Space** - APFS purgeable disk space (Time Machine snapshots)+- **Xcode Junk** - Derived data, archives, and simulator caches+- **Homebrew Cache** - Homebrew download cache+- **Scheduled Cleaning** - Automatic scans on configurable intervals+- **Auto-Purge** - Automatically purge purgeable files on schedule+- **Click-to-inspect** - See exactly what will be removed before cleaning++## Screenshots++| Smart Scan | Category Detail | File Inspector |+|---|---|---|+|  |  |  |++## Comparison++How does PureMac stack up against other Mac cleaning tools?++| Feature | PureMac | CleanMyMac X | OnyX | AppCleaner |+|---|---|---|---|---|+| Price | **Free** | $39.95/yr | Free | Free |+| Open source | **Yes** | No | No | No |+| Privacy (no telemetry) | **Yes** | No | Yes | Yes |+| System cache cleaning | **Yes** | Yes | Yes | No |+| Xcode junk cleaning | **Yes** | Yes | No | No |+| Scheduled auto-cleaning | **Yes** | Yes | No | No |+| Purgeable space purging | **Yes** | No | No | No |+| App uninstaller | No | Yes | No | Yes |+| Malware scanner | No | Yes | No | No |+| Native SwiftUI | **Yes** | No (AppKit) | No (AppKit) | No (AppKit) |+| macOS Ventura+ | **Yes** | Yes | Yes | Yes |+## Scheduling1. Open **Settings** (gear icon or Cmd+,)@@ -92,8 +137,18 @@ open PureMac.xcodeproj- Only removes caches, logs, temporary files, and user-selected items- Large & Old Files are **not auto-selected** - you choose what to remove- All operations are non-destructive to the operating system-- Purgeable space calculation uses only Time Machine snapshots, not total free space+- Purgeable space uses only Time Machine snapshots, not actual free space++## Contributing++Contributions are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.## LicenseMIT License. See [LICENSE](LICENSE) for details.++---++<p align="center">+ If PureMac saved you time or money, consider giving it a star on GitHub.+</p>