@halilertekin/macos-system-cleaner 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +318 -0
- package/README.tr.md +318 -0
- package/install.sh +155 -0
- package/macos-system-cleaner.rb +45 -0
- package/main_cleaner.sh +173 -0
- package/package.json +40 -0
- package/scripts/brew_update_with_cache.sh +12 -0
- package/scripts/cache_cleaner.sh +200 -0
- package/scripts/ide_cleaner.sh +273 -0
- package/scripts/ram_cleaner.sh +146 -0
- package/update_formula_sha.sh +265 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Halil Ertekin
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
# macOS System Cleaner
|
|
2
|
+
|
|
3
|
+
A comprehensive collection of scripts to clean RAM, cache and IDEs for improved macOS system performance.
|
|
4
|
+
|
|
5
|
+
## 🚀 Features
|
|
6
|
+
|
|
7
|
+
- **RAM Cleaning**: Optimizes system memory and increases performance
|
|
8
|
+
- **Cache Cleaning**: Analyzes and cleans user and system caches
|
|
9
|
+
- **IDE Cleaning**: Manages caches for Xcode, Android Studio, IntelliJ IDEA, PyCharm and other JetBrains IDEs
|
|
10
|
+
- **Brew Integration**: Works integrated with Homebrew updates
|
|
11
|
+
- **User Friendly**: Colorful outputs and clear instructions
|
|
12
|
+
- **Safe Cleaning**: Doesn't touch critical system files
|
|
13
|
+
|
|
14
|
+
## 📦 Contents
|
|
15
|
+
|
|
16
|
+
The project includes the following scripts:
|
|
17
|
+
|
|
18
|
+
### Main Scripts
|
|
19
|
+
|
|
20
|
+
- **`cache_cleaner.sh`**: Analyzes and cleans user and system caches
|
|
21
|
+
- **`ram_cleaner.sh`**: Performs RAM cleaning and increases system performance
|
|
22
|
+
- **`ide_cleaner.sh`**: Analyzes and cleans caches for Xcode and other IDEs
|
|
23
|
+
- **`main_cleaner.sh`**: Performs all cleaning operations with a single command
|
|
24
|
+
- **`brew_update_with_cache.sh`**: Wrapper that performs automatic cache analysis after Brew updates
|
|
25
|
+
|
|
26
|
+
### cache_cleaner.sh
|
|
27
|
+
|
|
28
|
+
Features:
|
|
29
|
+
- Analyzes user caches
|
|
30
|
+
- Lists top 10 largest caches
|
|
31
|
+
- Checks npm, Yarn, Homebrew caches
|
|
32
|
+
- Shows temporary folder sizes
|
|
33
|
+
- Provides safe cleaning options
|
|
34
|
+
|
|
35
|
+
Commands:
|
|
36
|
+
```
|
|
37
|
+
./scripts/cache_cleaner.sh analyze # Analyzes caches
|
|
38
|
+
./scripts/cache_cleaner.sh clean # Cleans caches
|
|
39
|
+
./scripts/cache_cleaner.sh help # Shows help menu
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### ram_cleaner.sh
|
|
43
|
+
|
|
44
|
+
Features:
|
|
45
|
+
- Shows RAM status (free, active, inactive, wired memory)
|
|
46
|
+
- Cleans disk cache
|
|
47
|
+
- Cleans system cache
|
|
48
|
+
- Cleans background processes
|
|
49
|
+
|
|
50
|
+
Commands:
|
|
51
|
+
```
|
|
52
|
+
./scripts/ram_cleaner.sh status # Shows RAM status
|
|
53
|
+
./scripts/ram_cleaner.sh clear # Performs RAM cleaning
|
|
54
|
+
./scripts/ram_cleaner.sh deep # Deep RAM cleaning (with background processes)
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### ide_cleaner.sh
|
|
58
|
+
|
|
59
|
+
Features:
|
|
60
|
+
- Detects Xcode, Android Studio, IntelliJ IDEA, PyCharm and other JetBrains IDEs
|
|
61
|
+
- Shows IDE cache folder sizes
|
|
62
|
+
- Safely cleans IDE caches
|
|
63
|
+
- Xcode-specific cleaning operations (DerivedData, Archive, iOS simulator data)
|
|
64
|
+
|
|
65
|
+
Commands:
|
|
66
|
+
```
|
|
67
|
+
./scripts/ide_cleaner.sh find # Finds IDE folders and shows sizes
|
|
68
|
+
./scripts/ide_cleaner.sh clean # Cleans IDE caches
|
|
69
|
+
./scripts/ide_cleaner.sh xcode # Xcode-specific cleaning operations
|
|
70
|
+
./scripts/ide_cleaner.sh all # Cleans all IDEs and Xcode
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### main_cleaner.sh
|
|
74
|
+
|
|
75
|
+
Features:
|
|
76
|
+
- Runs all cleaning scripts with a single command
|
|
77
|
+
- User-friendly menu system
|
|
78
|
+
- Individual approval system
|
|
79
|
+
|
|
80
|
+
Commands:
|
|
81
|
+
```
|
|
82
|
+
./main_cleaner.sh full # Full system cleaning (RAM + caches + IDE)
|
|
83
|
+
./main_cleaner.sh cache # Cache cleaning only
|
|
84
|
+
./main_cleaner.sh ram # RAM cleaning only
|
|
85
|
+
./main_cleaner.sh ide # IDE cleaning only
|
|
86
|
+
./main_cleaner.sh analyze # Analysis only (no cleaning)
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## 🛠️ Installation
|
|
90
|
+
|
|
91
|
+
### 1. Clone the Project
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
git clone https://github.com/username/macOS-System-Cleaner.git
|
|
95
|
+
cd macOS-System-Cleaner
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### 2. Set Script Permissions
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
chmod +x scripts/*.sh
|
|
102
|
+
chmod +x main_cleaner.sh
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### 3. Installation via npm (Global)
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
npm install -g @halilertekin/macos-system-cleaner
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
After this installation, you can directly use the `msc` command:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
msc analyze # Performs system analysis
|
|
115
|
+
msc full # Performs full system cleaning
|
|
116
|
+
msc cache # Cache cleaning only
|
|
117
|
+
msc ram # RAM cleaning only
|
|
118
|
+
msc ide # IDE cleaning only
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### 4. Bash Alias Usage
|
|
122
|
+
|
|
123
|
+
Also, you can create an alias to use the scripts like terminal commands:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
# Add to ~/.bashrc or ~/.zshrc file:
|
|
127
|
+
alias msc='/path/to/macOS-System-Cleaner/main_cleaner.sh'
|
|
128
|
+
|
|
129
|
+
# To apply changes:
|
|
130
|
+
source ~/.bashrc # or source ~/.zshrc
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Then you can directly use these commands:
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
msc analyze # System analysis
|
|
137
|
+
msc full # Full cleaning
|
|
138
|
+
msc cache # Cache cleaning
|
|
139
|
+
msc ram # RAM cleaning
|
|
140
|
+
msc ide # IDE cleaning
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Or use the convenience aliases that are installed with the install.sh script:
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
msc-analyze # System analysis
|
|
147
|
+
msc-cache # Cache cleaning
|
|
148
|
+
msc-ram # RAM cleaning
|
|
149
|
+
msc-ide # IDE cleaning
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## 📖 Usage
|
|
153
|
+
|
|
154
|
+
### Cache Cleaning
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
# Analyze caches
|
|
158
|
+
./scripts/cache_cleaner.sh analyze
|
|
159
|
+
|
|
160
|
+
# Clean caches (confirmation required)
|
|
161
|
+
./scripts/cache_cleaner.sh clean
|
|
162
|
+
|
|
163
|
+
# Help menu
|
|
164
|
+
./scripts/cache_cleaner.sh help
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### RAM Cleaning
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
# Show RAM status
|
|
171
|
+
./scripts/ram_cleaner.sh status
|
|
172
|
+
|
|
173
|
+
# Perform RAM cleaning
|
|
174
|
+
./scripts/ram_cleaner.sh clear
|
|
175
|
+
|
|
176
|
+
# Deep RAM cleaning (with background processes)
|
|
177
|
+
./scripts/ram_cleaner.sh deep
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### IDE Cleaning
|
|
181
|
+
|
|
182
|
+
```bash
|
|
183
|
+
# Find IDE folders and show sizes
|
|
184
|
+
./scripts/ide_cleaner.sh find
|
|
185
|
+
|
|
186
|
+
# Clean IDE caches
|
|
187
|
+
./scripts/ide_cleaner.sh clean
|
|
188
|
+
|
|
189
|
+
# Xcode-specific cleaning operations
|
|
190
|
+
./scripts/ide_cleaner.sh xcode
|
|
191
|
+
|
|
192
|
+
# Clean all IDEs and Xcode
|
|
193
|
+
./scripts/ide_cleaner.sh all
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### All Cleanings Together
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
# Full system cleaning (RAM + caches + IDE)
|
|
200
|
+
./main_cleaner.sh full
|
|
201
|
+
|
|
202
|
+
# Analysis only (no cleaning)
|
|
203
|
+
./main_cleaner.sh analyze
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
After full cleaning operations, you'll see a visual summary screen like:
|
|
207
|
+
|
|
208
|
+
```
|
|
209
|
+
┌─────────────────────────────────────────┐
|
|
210
|
+
│ CLEANING SUMMARY │
|
|
211
|
+
├─────────────────────────────────────────┤
|
|
212
|
+
│ • RAM cleaning: ✓ │
|
|
213
|
+
│ • Cache cleaning: ✓ │
|
|
214
|
+
│ • IDE cleaning: ✓ │
|
|
215
|
+
│ • System stability: ✓ │
|
|
216
|
+
└─────────────────────────────────────────┘
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
### Brew Update Integration
|
|
220
|
+
|
|
221
|
+
```bash
|
|
222
|
+
# Brew update + automatic cache analysis
|
|
223
|
+
./scripts/brew_update_with_cache.sh
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
## 🧪 Tested IDEs
|
|
227
|
+
|
|
228
|
+
- **Xcode**: DerivedData, Archive, iOS simulator data
|
|
229
|
+
- **Android Studio**: All versions (4.2, 2020.3, 2021.2, 2022.3, 2023.1)
|
|
230
|
+
- **IntelliJ IDEA**: All versions
|
|
231
|
+
- **PyCharm**: All versions
|
|
232
|
+
- **JetBrains IDEs**: GoLand, WebStorm, CLion, PhpStorm, Rider, AppCode, DataGrip, RubyMine
|
|
233
|
+
- **Visual Studio Code**: Application data
|
|
234
|
+
|
|
235
|
+
## ⚠️ Warnings
|
|
236
|
+
|
|
237
|
+
### General Warnings
|
|
238
|
+
- Scripts are designed to increase system performance
|
|
239
|
+
- It's good practice to backup important data before cleaning operations
|
|
240
|
+
- After IDE cleaning, IDEs may need to be restarted
|
|
241
|
+
- Cleaning Xcode DerivedData and Archive folders may affect build times
|
|
242
|
+
|
|
243
|
+
### RAM Cleaning Warnings
|
|
244
|
+
- During RAM cleaning, running applications may slow down temporarily
|
|
245
|
+
- RAM cleaning is generally only necessary when memory usage is very high
|
|
246
|
+
- RAM cleaning is not recommended if system memory is very low
|
|
247
|
+
|
|
248
|
+
### IDE Cleaning Warnings
|
|
249
|
+
- Cleaning IDE caches may take longer on first startup
|
|
250
|
+
- Project indexes may need to be recreated
|
|
251
|
+
- Some settings may be reset with cache cleaning
|
|
252
|
+
|
|
253
|
+
## 🤝 Contributing
|
|
254
|
+
|
|
255
|
+
If you want to contribute, please submit a pull request. Contributions in the following areas are welcome:
|
|
256
|
+
|
|
257
|
+
- New IDE supports
|
|
258
|
+
- Performance improvements
|
|
259
|
+
- Bug fixes
|
|
260
|
+
- New features
|
|
261
|
+
- Documentation improvements
|
|
262
|
+
|
|
263
|
+
### Contributing Steps
|
|
264
|
+
|
|
265
|
+
1. Fork the project
|
|
266
|
+
2. Create a new branch (`git checkout -b feature/new-feature`)
|
|
267
|
+
3. Make your changes
|
|
268
|
+
4. Commit your changes (`git commit -m 'New feature: Description'`)
|
|
269
|
+
5. Push to your branch (`git push origin feature/new-feature`)
|
|
270
|
+
6. Create a new Pull Request
|
|
271
|
+
|
|
272
|
+
## 📄 License
|
|
273
|
+
|
|
274
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
275
|
+
|
|
276
|
+
## 🐛 Issue Reporting
|
|
277
|
+
|
|
278
|
+
You can report bugs and suggestions in the GitHub Issues section.
|
|
279
|
+
|
|
280
|
+
## ⚠️ Disclaimer
|
|
281
|
+
|
|
282
|
+
These scripts are developed purely for system cleaning and performance improvement purposes. The developer is not responsible for any data loss, system instability or other possible issues that may occur while using the scripts. It's recommended to take system backups before using the scripts.
|
|
283
|
+
|
|
284
|
+
### Sensitive Data Content Disclaimer
|
|
285
|
+
|
|
286
|
+
This script collection:
|
|
287
|
+
- Does not contain any personal data
|
|
288
|
+
- Does not contain user passwords, API keys or other sensitive information
|
|
289
|
+
- Only performs operations on system cache and temporary files
|
|
290
|
+
- Does not access user data or private files
|
|
291
|
+
|
|
292
|
+
## 🔧 Homebrew Formula Otomatikleştirme
|
|
293
|
+
|
|
294
|
+
Bu proje, Homebrew formula dosyasındaki SHA256 hash değerlerini otomatik olarak güncellemek için bir script içerir:
|
|
295
|
+
|
|
296
|
+
```bash
|
|
297
|
+
# Yeni bir tag için SHA256 hash hesapla ve formula dosyasını güncelle
|
|
298
|
+
./update_formula_sha.sh --update v1.1.0
|
|
299
|
+
|
|
300
|
+
# GitHub'dan son tag'ı al ve güncelle
|
|
301
|
+
./update_formula_sha.sh --latest
|
|
302
|
+
|
|
303
|
+
# Sadece hesapla, güncelleme yapma (test modu)
|
|
304
|
+
./update_formula_sha.sh --dry-run v1.1.0
|
|
305
|
+
|
|
306
|
+
# Mevcut formula versiyonunu göster
|
|
307
|
+
./update_formula_sha.sh --show-current
|
|
308
|
+
|
|
309
|
+
# Yardım menüsü
|
|
310
|
+
./update_formula_sha.sh --help
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
Bu script, GitHub'da yeni bir tag oluşturulduğunda, ilgili tarball'ın SHA256 hash'ini hesaplar ve Homebrew formula dosyasını otomatik olarak günceller.
|
|
314
|
+
|
|
315
|
+
## 🙏 Acknowledgments
|
|
316
|
+
|
|
317
|
+
- To all open source communities that provide information about macOS system management
|
|
318
|
+
- To all users who provide testing and feedback
|
package/README.tr.md
ADDED
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
# macOS System Cleaner
|
|
2
|
+
|
|
3
|
+
macOS sistem performansını artırmak için RAM, önbellek ve IDE temizliği yapan kapsamlı script koleksiyonu.
|
|
4
|
+
|
|
5
|
+
## 🚀 Özellikler
|
|
6
|
+
|
|
7
|
+
- **RAM Temizliği**: Sistem belleğini optimize eder ve performansı artırır
|
|
8
|
+
- **Önbellek Temizliği**: Kullanıcı ve sistem önbelleklerini analiz eder ve gereksiz olanları temizler
|
|
9
|
+
- **IDE Temizliği**: Xcode, Android Studio, IntelliJ IDEA, PyCharm ve diğer JetBrains IDE'lerinin önbelleklerini yönetir
|
|
10
|
+
- **Brew Entegrasyonu**: Homebrew güncellemeleriyle entegre çalışır
|
|
11
|
+
- **Kullanıcı Dostu**: Renkli çıktılar ve açık talimatlar
|
|
12
|
+
- **Güvenli Temizlik**: Kritik sistem dosyalarına dokunmaz
|
|
13
|
+
|
|
14
|
+
## 📦 İçerik
|
|
15
|
+
|
|
16
|
+
Proje aşağıdaki script'leri içerir:
|
|
17
|
+
|
|
18
|
+
### Ana Script'ler
|
|
19
|
+
|
|
20
|
+
- **`cache_cleaner.sh`**: Kullanıcı ve sistem önbelleklerini analiz eder ve temizler
|
|
21
|
+
- **`ram_cleaner.sh`**: RAM temizliği yapar ve sistem performansını artırır
|
|
22
|
+
- **`ide_cleaner.sh`**: Xcode ve diğer IDE'lerin önbelleklerini analiz eder ve temizler
|
|
23
|
+
- **`main_cleaner.sh`**: Tüm temizlik işlemlerini tek bir komutla yapar
|
|
24
|
+
- **`brew_update_with_cache.sh`**: Brew güncellemesi sonrası otomatik önbellek analizi yapan wrapper
|
|
25
|
+
|
|
26
|
+
### cache_cleaner.sh
|
|
27
|
+
|
|
28
|
+
Özellikler:
|
|
29
|
+
- Kullanıcı önbelleklerini analiz eder
|
|
30
|
+
- En büyük 10 önbelleği sıralar
|
|
31
|
+
- npm, Yarn, Homebrew önbelleklerini kontrol eder
|
|
32
|
+
- Geçici klasör boyutlarını gösterir
|
|
33
|
+
- Güvenli temizleme seçenekleri sunar
|
|
34
|
+
|
|
35
|
+
Komutlar:
|
|
36
|
+
```
|
|
37
|
+
./scripts/cache_cleaner.sh analyze # Önbellekleri analiz eder
|
|
38
|
+
./scripts/cache_cleaner.sh clean # Önbellekleri temizler
|
|
39
|
+
./scripts/cache_cleaner.sh help # Yardım menüsünü gösterir
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### ram_cleaner.sh
|
|
43
|
+
|
|
44
|
+
Özellikler:
|
|
45
|
+
- RAM durumunu gösterir (boş, aktif, pasif, sabitlenmiş bellek)
|
|
46
|
+
- Disk önbelleğini temizler
|
|
47
|
+
- Sistem önbelleğini temizler
|
|
48
|
+
- Arka plan süreçlerini temizler
|
|
49
|
+
|
|
50
|
+
Komutlar:
|
|
51
|
+
```
|
|
52
|
+
./scripts/ram_cleaner.sh status # RAM durumunu gösterir
|
|
53
|
+
./scripts/ram_cleaner.sh clear # RAM temizliği yapar
|
|
54
|
+
./scripts/ram_cleaner.sh deep # Derin RAM temizliği (arka plan süreçleriyle birlikte)
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### ide_cleaner.sh
|
|
58
|
+
|
|
59
|
+
Özellikler:
|
|
60
|
+
- Xcode, Android Studio, IntelliJ IDEA, PyCharm ve diğer JetBrains IDE'lerini tespit eder
|
|
61
|
+
- IDE önbellek klasörlerinin boyutlarını gösterir
|
|
62
|
+
- IDE önbelleklerini güvenli bir şekilde temizler
|
|
63
|
+
- Xcode'a özel temizlik işlemleri (DerivedData, Archive, iOS simülatör verileri)
|
|
64
|
+
|
|
65
|
+
Komutlar:
|
|
66
|
+
```
|
|
67
|
+
./scripts/ide_cleaner.sh find # IDE klasörlerini bulur ve boyutlarını gösterir
|
|
68
|
+
./scripts/ide_cleaner.sh clean # IDE önbelleklerini temizler
|
|
69
|
+
./scripts/ide_cleaner.sh xcode # Xcode'a özel temizlik işlemleri
|
|
70
|
+
./scripts/ide_cleaner.sh all # Tüm IDE'leri ve Xcode temizliklerini yapar
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### main_cleaner.sh
|
|
74
|
+
|
|
75
|
+
Özellikler:
|
|
76
|
+
- Tüm temizlik script'lerini tek bir komutla çalıştırır
|
|
77
|
+
- Kullanıcı dostu menü sistemi
|
|
78
|
+
- Ayrı ayrı onay sistemi
|
|
79
|
+
|
|
80
|
+
Komutlar:
|
|
81
|
+
```
|
|
82
|
+
./main_cleaner.sh full # Tüm sistem temizliği (RAM + önbellekler + IDE)
|
|
83
|
+
./main_cleaner.sh cache # Sadece önbellek temizliği
|
|
84
|
+
./main_cleaner.sh ram # Sadece RAM temizliği
|
|
85
|
+
./main_cleaner.sh ide # Sadece IDE temizliği
|
|
86
|
+
./main_cleaner.sh analyze # Sadece analiz (temizleme yapmaz)
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## 🛠️ Kurulum
|
|
90
|
+
|
|
91
|
+
### 1. Projeyi Klonlama
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
git clone https://github.com/kullaniciadi/macOS-System-Cleaner.git
|
|
95
|
+
cd macOS-System-Cleaner
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### 2. Script İzinlerini Ayarlama
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
chmod +x scripts/*.sh
|
|
102
|
+
chmod +x main_cleaner.sh
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### 3. npm Üzerinden Kurulum (Global)
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
npm install -g @halilertekin/macos-system-cleaner
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Bu kurulum sonrası, doğrudan `msc` komutunu kullanabilirsiniz:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
msc analyze # Sistem analizi yapar
|
|
115
|
+
msc full # Tam sistem temizliği yapar
|
|
116
|
+
msc cache # Sadece önbellek temizliği
|
|
117
|
+
msc ram # Sadece RAM temizliği
|
|
118
|
+
msc ide # Sadece IDE temizliği
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### 4. Bash Alias Kullanımı
|
|
122
|
+
|
|
123
|
+
Ayrıca, script'leri doğrudan terminal komutu gibi kullanmak için bir alias oluşturabilirsiniz:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
# ~/.bashrc veya ~/.zshrc dosyasına ekleyin:
|
|
127
|
+
alias msc='/path/to/macOS-System-Cleaner/main_cleaner.sh'
|
|
128
|
+
|
|
129
|
+
# Değişiklikleri uygulamak için:
|
|
130
|
+
source ~/.bashrc # veya source ~/.zshrc
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Sonrasında doğrudan şu komutları kullanabilirsiniz:
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
msc analyze # Sistem analizi
|
|
137
|
+
msc full # Tam temizlik
|
|
138
|
+
msc cache # Önbellek temizliği
|
|
139
|
+
msc ram # RAM temizliği
|
|
140
|
+
msc ide # IDE temizliği
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Veya install.sh scripti ile kurulan kolaylık alias'larını kullanabilirsiniz:
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
msc-analyze # Sistem analizi
|
|
147
|
+
msc-cache # Önbellek temizliği
|
|
148
|
+
msc-ram # RAM temizliği
|
|
149
|
+
msc-ide # IDE temizliği
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## 📖 Kullanım
|
|
153
|
+
|
|
154
|
+
### Önbellek Temizliği
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
# Önbellekleri analiz et
|
|
158
|
+
./scripts/cache_cleaner.sh analyze
|
|
159
|
+
|
|
160
|
+
# Önbellekleri temizle (onay istenir)
|
|
161
|
+
./scripts/cache_cleaner.sh clean
|
|
162
|
+
|
|
163
|
+
# Yardım menüsü
|
|
164
|
+
./scripts/cache_cleaner.sh help
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### RAM Temizliği
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
# RAM durumunu göster
|
|
171
|
+
./scripts/ram_cleaner.sh status
|
|
172
|
+
|
|
173
|
+
# RAM temizliği yap
|
|
174
|
+
./scripts/ram_cleaner.sh clear
|
|
175
|
+
|
|
176
|
+
# Derin RAM temizliği (arka plan süreçleriyle birlikte)
|
|
177
|
+
./scripts/ram_cleaner.sh deep
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### IDE Temizliği
|
|
181
|
+
|
|
182
|
+
```bash
|
|
183
|
+
# IDE klasörlerini bul ve boyutlarını göster
|
|
184
|
+
./scripts/ide_cleaner.sh find
|
|
185
|
+
|
|
186
|
+
# IDE önbelleklerini temizle
|
|
187
|
+
./scripts/ide_cleaner.sh clean
|
|
188
|
+
|
|
189
|
+
# Xcode'a özel temizlik işlemleri
|
|
190
|
+
./scripts/ide_cleaner.sh xcode
|
|
191
|
+
|
|
192
|
+
# Tüm IDE'leri ve Xcode temizliklerini yap
|
|
193
|
+
./scripts/ide_cleaner.sh all
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Tüm Temizlikleri Bir Arada
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
# Tüm sistem temizliği (RAM + önbellekler + IDE)
|
|
200
|
+
./main_cleaner.sh full
|
|
201
|
+
|
|
202
|
+
# Sadece analiz yap (temizleme yapmaz)
|
|
203
|
+
./main_cleaner.sh analyze
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
Tam temizleme işlemlerinden sonra aşağıdaki gibi görsel bir özet ekranı göreceksiniz:
|
|
207
|
+
|
|
208
|
+
```
|
|
209
|
+
┌─────────────────────────────────────────┐
|
|
210
|
+
│ TEMİZLEME ÖZETİ │
|
|
211
|
+
├─────────────────────────────────────────┤
|
|
212
|
+
│ • RAM temizliği: ✓ │
|
|
213
|
+
│ • Önbellek temizliği: ✓ │
|
|
214
|
+
│ • IDE temizliği: ✓ │
|
|
215
|
+
│ • Sistem kararlılığı: ✓ │
|
|
216
|
+
└─────────────────────────────────────────┘
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
### Brew Update ile Entegrasyon
|
|
220
|
+
|
|
221
|
+
```bash
|
|
222
|
+
# Brew güncellemesi + otomatik önbellek analizi
|
|
223
|
+
./scripts/brew_update_with_cache.sh
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
## 🧪 Test Edilmiş IDE'ler
|
|
227
|
+
|
|
228
|
+
- **Xcode**: DerivedData, Archive, iOS simülatör verileri
|
|
229
|
+
- **Android Studio**: Tüm versiyonlar (4.2, 2020.3, 2021.2, 2022.3, 2023.1)
|
|
230
|
+
- **IntelliJ IDEA**: Tüm versiyonlar
|
|
231
|
+
- **PyCharm**: Tüm versiyonlar
|
|
232
|
+
- **JetBrains IDE'leri**: GoLand, WebStorm, CLion, PhpStorm, Rider, AppCode, DataGrip, RubyMine
|
|
233
|
+
- **Visual Studio Code**: Uygulama verileri
|
|
234
|
+
|
|
235
|
+
## ⚠️ Dikkat Edilmesi Gerekenler
|
|
236
|
+
|
|
237
|
+
### Genel Uyarılar
|
|
238
|
+
- Script'ler sistem performansını artırmak için tasarlanmıştır
|
|
239
|
+
- Temizlik işlemleri öncesi önemli verilerinizi yedeklemek iyi bir uygulamadır
|
|
240
|
+
- IDE temizliği sonrası IDE'lerin yeniden başlatılması gerekebilir
|
|
241
|
+
- Xcode DerivedData ve Archive klasörlerinin temizlenmesi derleme sürelerini etkileyebilir
|
|
242
|
+
|
|
243
|
+
### RAM Temizliği Uyarıları
|
|
244
|
+
- RAM temizliği sırasında çalışan uygulamalar kısa süreli yavaşlayabilir
|
|
245
|
+
- RAM temizliği genellikle sadece yüksek bellek kullanımı durumunda gereklidir
|
|
246
|
+
- Sistem belleği çok düşükse RAM temizliği önerilmez
|
|
247
|
+
|
|
248
|
+
### IDE Temizliği Uyarıları
|
|
249
|
+
- IDE önbelleklerinin temizlenmesi ilk açılışta daha uzun sürebilir
|
|
250
|
+
- Proje indekslerinin yeniden oluşturulması gerekebilir
|
|
251
|
+
- Bazı ayarlar önbellek temizliğiyle birlikte sıfırlanabilir
|
|
252
|
+
|
|
253
|
+
## 🤝 Katkıda Bulunma
|
|
254
|
+
|
|
255
|
+
Katkıda bulunmak isterseniz, lütfen bir pull request gönderin. Aşağıdaki konularda katkılar memnuniyetle karşılanır:
|
|
256
|
+
|
|
257
|
+
- Yeni IDE destekleri
|
|
258
|
+
- Performans iyileştirmeleri
|
|
259
|
+
- Hata düzeltmeleri
|
|
260
|
+
- Yeni özellikler
|
|
261
|
+
- Belgeleme geliştirmeleri
|
|
262
|
+
|
|
263
|
+
### Katkıda Bulunma Adımları
|
|
264
|
+
|
|
265
|
+
1. Projeyi fork edin
|
|
266
|
+
2. Yeni bir branch oluşturun (`git checkout -b feature/yeni-ozellik`)
|
|
267
|
+
3. Değişikliklerinizi yapın
|
|
268
|
+
4. Değişikliklerinizi commit edin (`git commit -m 'Yeni özellik: Açıklama'`)
|
|
269
|
+
5. Branch'inize push edin (`git push origin feature/yeni-ozellik`)
|
|
270
|
+
6. Yeni bir Pull Request oluşturun
|
|
271
|
+
|
|
272
|
+
## 📄 Lisans
|
|
273
|
+
|
|
274
|
+
Bu proje MIT Lisansı ile lisanslanmıştır - detaylar için [LICENSE](LICENSE) dosyasına bakın.
|
|
275
|
+
|
|
276
|
+
## 🐛 Hata Bildirimi
|
|
277
|
+
|
|
278
|
+
Hataları ve önerileri GitHub Issues bölümünden bildirebilirsiniz.
|
|
279
|
+
|
|
280
|
+
## ⚠️ Sorumluluk Reddi (Disclaimer)
|
|
281
|
+
|
|
282
|
+
Bu script'ler tamamen sistem temizliği ve performans artırma amacıyla geliştirilmiştir. Script'leri kullanırken oluşabilecek veri kaybı, sistem kararsızlığı veya diğer olası sorunlardan geliştirici sorumlu değildir. Script'leri kullanmadan önce sistem yedekleri almanız önerilir.
|
|
283
|
+
|
|
284
|
+
### Hassas Veri İçerik Reddi
|
|
285
|
+
|
|
286
|
+
Bu script koleksiyonu:
|
|
287
|
+
- Herhangi bir kişisel veri içermemektedir
|
|
288
|
+
- Kullanıcı şifreleri, API anahtarları veya diğer hassas bilgileri içermez
|
|
289
|
+
- Sadece sistem önbelleği ve geçici dosyaları üzerinde işlem yapar
|
|
290
|
+
- Kullanıcı verilerine veya özel dosyalara erişim sağlamaz
|
|
291
|
+
|
|
292
|
+
## 🔧 Homebrew Formula Otomatikleştirme
|
|
293
|
+
|
|
294
|
+
Bu proje, Homebrew formula dosyasındaki SHA256 hash değerlerini otomatik olarak güncellemek için bir script içerir:
|
|
295
|
+
|
|
296
|
+
```bash
|
|
297
|
+
# Yeni bir tag için SHA256 hash hesapla ve formula dosyasını güncelle
|
|
298
|
+
./update_formula_sha.sh --update v1.1.0
|
|
299
|
+
|
|
300
|
+
# GitHub'dan son tag'ı al ve güncelle
|
|
301
|
+
./update_formula_sha.sh --latest
|
|
302
|
+
|
|
303
|
+
# Sadece hesapla, güncelleme yapma (test modu)
|
|
304
|
+
./update_formula_sha.sh --dry-run v1.1.0
|
|
305
|
+
|
|
306
|
+
# Mevcut formula versiyonunu göster
|
|
307
|
+
./update_formula_sha.sh --show-current
|
|
308
|
+
|
|
309
|
+
# Yardım menüsü
|
|
310
|
+
./update_formula_sha.sh --help
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
Bu script, GitHub'da yeni bir tag oluşturulduğunda, ilgili tarball'ın SHA256 hash'ini hesaplar ve Homebrew formula dosyasını otomatik olarak günceller.
|
|
314
|
+
|
|
315
|
+
## 🙏 Teşekkürler
|
|
316
|
+
|
|
317
|
+
- macOS sistem yönetimi konusunda bilgi sağlayan tüm açık kaynak topluluklarına
|
|
318
|
+
- Test ve geri bildirim sağlayan tüm kullanıcılara
|