docs: update README with new features and cross-platform build instructions
This commit is contained in:
parent
eb4a400736
commit
d674c89c47
1 changed files with 16 additions and 17 deletions
33
README.md
33
README.md
|
|
@ -5,22 +5,24 @@ A modern, high-performance system optimizer for macOS, built with **Electron**,
|
||||||

|

|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
- **Flash Clean**: Instantly remove system caches, logs, and trash.
|
- **Flash Clean**: Instantly remove system caches, logs, Xcode cache, Homebrew cache, and manage Trash with a detailed inspection view.
|
||||||
|
- **App Uninstaller**: View installed applications, their sizes, and thoroughly remove them along with their associated preference files and caches.
|
||||||
- **Deep Clean**: Scan for large files and heavy folders.
|
- **Deep Clean**: Scan for large files and heavy folders.
|
||||||
- **Real-time Monitoring**: Track disk usage and category sizes.
|
- **Real-time Monitoring**: Track disk usage and category sizes.
|
||||||
- **Universal Binary**: Runs natively on both Apple Silicon (M1/M2/M3) and Intel Macs.
|
- **Native Menubar Integration**: Includes a responsive, monochrome template icon that adapts to macOS light/dark modes perfectly.
|
||||||
- **High Performance**: Heavy lifting is handled by a compiled Go backend.
|
- **Cross-Platform**: Runs natively with compiled Go backends on Apple Silicon (M1/M2/M3), Intel Macs, and Windows.
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
- **Node.js** (v18+)
|
- **Node.js** (v18+)
|
||||||
- **Go** (v1.20+)
|
- **Go** (v1.20+)
|
||||||
- **pnpm** (preferred) or npm
|
- **pnpm** (preferred) or npm
|
||||||
|
- **C Compiler** (gcc/clang, via Xcode Command Line Tools on macOS)
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
### 1. Install Dependencies
|
### 1. Install Dependencies
|
||||||
```bash
|
```bash
|
||||||
npm install
|
pnpm install
|
||||||
```
|
```
|
||||||
|
|
||||||
### 2. Run in Development Mode
|
### 2. Run in Development Mode
|
||||||
|
|
@ -28,28 +30,25 @@ This starts the Go backend (port 36969) and the Vite/Electron frontend concurren
|
||||||
```bash
|
```bash
|
||||||
./start-go.sh
|
./start-go.sh
|
||||||
```
|
```
|
||||||
*Note: Do not run `npm run dev` directly if you want the backend to work. Use the script.*
|
*Note: Do not run `pnpm run dev` directly if you want the backend to work. Use the script.*
|
||||||
|
|
||||||
## Building for Production
|
## Building for Production
|
||||||
|
|
||||||
To create a distributable `.dmg` file for macOS:
|
To create distributable release binaries (Universal `.dmg` for macOS, Portable `.exe` for Windows):
|
||||||
|
|
||||||
### 1. Build the App
|
### 1. Build the App
|
||||||
```bash
|
```bash
|
||||||
npm run build:mac
|
# macOS Universal DMG
|
||||||
|
pnpm run build && pnpm run electron:build && npx electron-builder --mac --universal
|
||||||
|
|
||||||
|
# Windows Portable EXE
|
||||||
|
pnpm run build && pnpm run electron:build && npx electron-builder --win portable --x64
|
||||||
```
|
```
|
||||||
This command will:
|
|
||||||
1. Compile the Go backend for both `amd64` and `arm64`.
|
|
||||||
2. Create a universal binary using `lipo`.
|
|
||||||
3. Build the React frontend.
|
|
||||||
4. Package the Electron app and bundle the backend.
|
|
||||||
5. Generate a universal `.dmg`.
|
|
||||||
|
|
||||||
### 2. Locate the Installer
|
### 2. Locate the Installer
|
||||||
The output file will be at:
|
The output files will be automatically placed in the `release/` directory:
|
||||||
```
|
- `release/KV Clearnup-1.0.0-universal.dmg` (macOS)
|
||||||
release/KV Clearnup-1.0.0-universal.dmg
|
- `release/KV Clearnup 1.0.0.exe` (Windows)
|
||||||
```
|
|
||||||
|
|
||||||
## Running the App
|
## Running the App
|
||||||
1. **Mount the DMG**: Double-click the `.dmg` file in the `release` folder.
|
1. **Mount the DMG**: Double-click the `.dmg` file in the `release` folder.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue