Chore: Sadelestirilmis temiz UTF-8 release notlari standardi

This commit is contained in:
LilDosto 2026-10-28 06:29:35 +03:00
parent b466ec40dc
commit e947e04c39

View file

@ -1,4 +1,4 @@
param( param(
[ValidateSet("major", "minor", "patch", "current")] [ValidateSet("major", "minor", "patch", "current")]
[string]$Type = "current", [string]$Type = "current",
[string]$Message = "" [string]$Message = ""
@ -62,13 +62,13 @@ $propsContent = @"
Set-Content -Path $propsFile -Value $propsContent -Encoding UTF8 Set-Content -Path $propsFile -Value $propsContent -Encoding UTF8
Write-Host "==========================================" -ForegroundColor Cyan Write-Host "==========================================" -ForegroundColor Cyan
Write-Host " LD UNINSTALLER SÜRÜM YAYINLAMA: v$newVersion" -ForegroundColor Yellow Write-Host " LD UNINSTALLER SÜRÜM YAYINLAMA: v$newVersion" -ForegroundColor Yellow
Write-Host "==========================================" -ForegroundColor Cyan Write-Host "==========================================" -ForegroundColor Cyan
# 1. Ana klasörde eski sürümleri temizle (Sadece tek ve son sürüm kalacak şekilde) # 1. Ana klasörde eski sürümleri temizle (Sadece tek ve son sürüm kalacak ÅŸekilde)
$oldFolders = Get-ChildItem -Path $root -Directory -Filter "LD Uninstaller v*" $oldFolders = Get-ChildItem -Path $root -Directory -Filter "LD Uninstaller v*"
foreach ($old in $oldFolders) { foreach ($old in $oldFolders) {
Write-Host "Eski sürüm klasörü temizleniyor: $($old.Name)..." -ForegroundColor Gray Write-Host "Eski sürüm klasörü temizleniyor: $($old.Name)..." -ForegroundColor Gray
try { try {
Remove-Item -Path $old.FullName -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -Path $old.FullName -Recurse -Force -ErrorAction SilentlyContinue
} catch { } } catch { }
@ -77,11 +77,11 @@ foreach ($old in $oldFolders) {
$targetFolderName = "LD Uninstaller v$newVersion" $targetFolderName = "LD Uninstaller v$newVersion"
$targetDir = Join-Path $root $targetFolderName $targetDir = Join-Path $root $targetFolderName
Write-Host "Yeni sürüm klasörü oluşturuluyor: $targetFolderName..." -ForegroundColor Green Write-Host "Yeni sürüm klasörü oluÅŸturuluyor: $targetFolderName..." -ForegroundColor Green
New-Item -ItemType Directory -Path $targetDir -Force | Out-Null New-Item -ItemType Directory -Path $targetDir -Force | Out-Null
# 2. Projeleri Release modunda derle ve tek klasöre aktar # 2. Projeleri Release modunda derle ve tek klasöre aktar
Write-Host "Projeler derleniyor ve yayınlanıyor..." -ForegroundColor Cyan Write-Host "Projeler derleniyor ve yayınlanıyor..." -ForegroundColor Cyan
$projects = @( $projects = @(
"src/LDUninstaller.UI/LDUninstaller.UI.csproj", "src/LDUninstaller.UI/LDUninstaller.UI.csproj",
@ -92,18 +92,18 @@ $projects = @(
foreach ($proj in $projects) { foreach ($proj in $projects) {
$projPath = Join-Path $root $proj $projPath = Join-Path $root $proj
Write-Host " -> Yayınlanıyor: $proj" -ForegroundColor Gray Write-Host " -> Yayınlanıyor: $proj" -ForegroundColor Gray
dotnet publish $projPath -c Release -o $targetDir --nologo -v q dotnet publish $projPath -c Release -o $targetDir --nologo -v q
} }
# 3. Gereksiz pdb ve log dosyalarını temizle # 3. Gereksiz pdb ve log dosyalarını temizle
Get-ChildItem -Path $targetDir -Filter "*.pdb" | Remove-Item -Force -ErrorAction SilentlyContinue Get-ChildItem -Path $targetDir -Filter "*.pdb" | Remove-Item -Force -ErrorAction SilentlyContinue
# 4. Eski publish ve dist klasörlerini de temizle # 4. Eski publish ve dist klasörlerini de temizle
try { Remove-Item -Path (Join-Path $root "publish") -Recurse -Force -ErrorAction SilentlyContinue } catch { } try { Remove-Item -Path (Join-Path $root "publish") -Recurse -Force -ErrorAction SilentlyContinue } catch { }
try { Remove-Item -Path (Join-Path $root "dist") -Recurse -Force -ErrorAction SilentlyContinue } catch { } try { Remove-Item -Path (Join-Path $root "dist") -Recurse -Force -ErrorAction SilentlyContinue } catch { }
# 5. Sürüm ZIP Arşivini Oluştur (GitHub Releases için) # 5. Sürüm ZIP ArÅŸivini OluÅŸtur (GitHub Releases için)
$oldZips = Get-ChildItem -Path $root -File -Filter "LD-Uninstaller-v*.zip" $oldZips = Get-ChildItem -Path $root -File -Filter "LD-Uninstaller-v*.zip"
foreach ($oz in $oldZips) { foreach ($oz in $oldZips) {
try { Remove-Item -Path $oz.FullName -Force -ErrorAction SilentlyContinue } catch { } try { Remove-Item -Path $oz.FullName -Force -ErrorAction SilentlyContinue } catch { }
@ -111,15 +111,15 @@ foreach ($oz in $oldZips) {
$zipName = "LD-Uninstaller-v$newVersion.zip" $zipName = "LD-Uninstaller-v$newVersion.zip"
$zipPath = Join-Path $root $zipName $zipPath = Join-Path $root $zipName
Write-Host "Sürüm arşivi oluşturuluyor: $zipName..." -ForegroundColor Cyan Write-Host "Sürüm arÅŸivi oluÅŸturuluyor: $zipName..." -ForegroundColor Cyan
Compress-Archive -Path "$targetDir\*" -DestinationPath $zipPath -Force Compress-Archive -Path "$targetDir\*" -DestinationPath $zipPath -Force
# 6. Git Değişiklikleri, Etiket (Tag) ve GitHub Senkronizasyonu # 6. Git DeÄŸiÅŸiklikleri, Etiket (Tag) ve GitHub Senkronizasyonu
if (Test-Path (Join-Path $root ".git")) { if (Test-Path (Join-Path $root ".git")) {
Write-Host "`nGit değişiklikleri işleniyor ve GitHub'a aktarılıyor..." -ForegroundColor Cyan Write-Host "`nGit deÄŸiÅŸiklikleri iÅŸleniyor ve GitHub'a aktarılıyor..." -ForegroundColor Cyan
try { try {
if ([string]::IsNullOrWhiteSpace($Message)) { if ([string]::IsNullOrWhiteSpace($Message)) {
$Message = "Release v${newVersion}: 20 Katmanli Derin Kalinti Temizleme Motoru ve Arayuz Sadeleştirmesi" $Message = "Release v${newVersion}: 20 Katmanli Derin Kalinti Temizleme Motoru ve Arayuz SadeleÅŸtirmesi"
} }
git add . git add .
git commit -m $Message git commit -m $Message
@ -127,17 +127,17 @@ if (Test-Path (Join-Path $root ".git")) {
$remote = git remote get-url origin 2>$null $remote = git remote get-url origin 2>$null
if ($remote) { if ($remote) {
Write-Host "GitHub'a gönderiliyor (origin master --tags)..." -ForegroundColor Yellow Write-Host "GitHub'a gönderiliyor (origin master --tags)..." -ForegroundColor Yellow
git push origin master --tags -u -f git push origin master --tags -u -f
} }
} catch { } catch {
Write-Host "Git işlemi uyarısı: $_" -ForegroundColor Yellow Write-Host "Git iÅŸlemi uyarısı: $_" -ForegroundColor Yellow
} }
} }
# 7. GitHub Releases API Üzerinde Sürüm ve Değişiklik Notlarını Yayınla # 7. GitHub Releases API Üzerinde Sürüm ve DeÄŸiÅŸiklik Notlarını Yayınla
try { try {
Write-Host "`nGitHub Releases API üzerinden sürüm ve notlar yayınlanıyor..." -ForegroundColor Cyan Write-Host "`nGitHub Releases API üzerinden sürüm ve notlar yayınlanıyor..." -ForegroundColor Cyan
$code = @" $code = @"
using System; using System;
@ -189,7 +189,7 @@ public class GitCredsPublisher
if ($env:GH_TOKEN) { $token = $env:GH_TOKEN } if ($env:GH_TOKEN) { $token = $env:GH_TOKEN }
if (-not $token) { if (-not $token) {
Write-Host "Uyarı: GitHub kimlik belirteci (token) bulunamadı. Release API atlanıyor." -ForegroundColor Yellow Write-Host "Uyarı: GitHub kimlik belirteci (token) bulunamadı. Release API atlanıyor." -ForegroundColor Yellow
} else { } else {
$apiHeaders = @{ $apiHeaders = @{
"Authorization" = "Bearer $token" "Authorization" = "Bearer $token"
@ -200,38 +200,16 @@ public class GitCredsPublisher
$repoOwner = "LilDosto" $repoOwner = "LilDosto"
$repoName = "LD-Unistaller" $repoName = "LD-Unistaller"
# Changelog / Sürüm Notları # Changelog / Sürüm Notları (Sade, temiz ve bozulmayan format)
$releaseNotes = @" $releaseNotes = @"
## 🚀 LD Uninstaller v$newVersion ## LD Uninstaller v$newVersion
### 🧹 20 Katmanlı Derin Kalıntı ve Artık Temizleme Motoru ### Yenilikler ve GeliÅŸtirmeler
Kaldırma işlemi (tekli veya çoklu) tamamlandığında otomatik devreye giren gelişmiş kalıntı temizleme motoru: - **20 Katmanlı Derin Kalıntı Temizleme:** Kaldırma iÅŸlemi sonrasında sistemde kalan servisler, zamanlanmış gÃrevler, kayıt defteri anahtarları ve dosya kalıntıları eksiksiz taranır ve temizlenir.
1. **Ana Kurulum Klasörleri:** Kaldırıcı sonrası silinmemiş ana dizin kalıntıları. - **Çoklu Disk DesteÄŸi:** Sistemdeki tüm diskler (C:, D: vb.) için sekme yÃnetimi ve gÃrsel disk alanı analizi.
2. **Kullanıcı & Sistem Dizinleri:** `%AppData%`, `%LocalAppData%`, `LocalLow`, `%ProgramData%`, `Documents`, `Saved Games`. - **Ultra Akıcı Arayüz:** Pürüzsüz kaydırma, gecikmesiz anlık arama ve modern koyu tema.
3. **Kullanıcı Profil Gizli Dizinleri (Dot-Folders):** Modern yazılımların `%USERPROFILE%` altındaki `.appname`, `.config`, `.cache`, `.local/share` klasörleri. - **Tek TuÅŸla Kaldırma:** SadeleÅŸtirilmiÅŸ tek 'Kaldır' butonu ve otomatik arka plan kuyruk yÃnetimi.
4. **Ortak Kütüphaneler (Common Files):** `Common Files` altında sahipsiz kalan DLL ve bileşenler. - **SadeleÅŸtirilmiÅŸ Sürüm İsimlendirmesi:** Tüm arayüz ve dokümantasyon sadeleÅŸtirildi.
5. **Geçici Dosyalar (Temp):** `%TEMP%` ve `%LOCALAPPDATA%\Temp` kurulum/kaldırma önbellekleri.
6. **Çoklu Sürücüler & Boş Kalan Klasörler:** İkincil disklerdeki (`D:\`, `E:\` vb.) oyun/yazılım artıkları ve boş kalan yayıncı klasörleri.
7. **Yazılım Kayıt Defteri:** `HKLM`, `HKCU` ve `WOW6432Node` Software dalları.
8. **Windows Hizmetleri:** `HKLM\SYSTEM\CurrentControlSet\Services` taranarak yetim servisler otomatik tespit edilir ve `sc stop` + `sc delete` ile kaldırılır.
9. **Görev Zamanlayıcı:** `C:\Windows\System32\Tasks` içerisindeki yetim görevler `schtasks /Delete` ile temizlenir.
10. **Uygulama Başlatma Yolları (App Paths):** Kayıt defteri `App Paths` kalıntıları.
11. **Başlangıç Kayıt Defteri Değerleri (Run & RunOnce):** Otomatik çalıştırma anahtarlarındaki ilgili değerler.
12. **Gezgin Sağ Tık & COM Bileşenleri:** ContextMenuHandlers, Approved kabuk uzantıları ve ilişkili CLSID anahtarları.
13. **Windows Shell MuiCache:** MuiCache önbellek ve simge kayıtları.
14. **Uyumluluk Katmanı (AppCompatFlags):** Compatibility Assistant ve Layers geçmişi.
15. **Windows Güvenlik Duvarı:** `FirewallRules` altındaki yetim kurallar.
16. **Windows Prefetch:** `C:\Windows\Prefetch` çalıştırma önbellek dosyaları.
17. **Hata Dökümleri:** `CrashDumps` ve WER arşiv raporları.
18. **UserAssist:** ROT13 ile şifrelenen çalıştırma geçmişi.
19. **Kısayollar & Son Belgeler:** Masaüstü, Başlat Menüsü, Startup ve Recent kısayolları.
20. **Windows Installer (MSI) & Registry Uninstall:** MSI Product/UserData ve Registry Uninstall girdileri.
### ⚡ Performans ve Tasarım
- **Ultra Akıcı Arayüz:** 160ms debounce filtreleme ve piksel kaydırmalı donanım hızlandırmalı modern koyu arayüz.
- **Çoklu Disk Sekmeleri:** `🌐 Tüm Diskler`, `💾 C:`, `💾 D:` dinamik sekmeleri ve disk haritası.
- **Tek Tıkla Kaldır:** Tekil veya çoklu kaldırma için tek ve net `🗑️ Kaldır` eylemi.
- **Sadeleştirilmiş Sürüm İsimlendirmesi:** Tüm gereksiz "Pro Edition" ifadeleri temizlendi, temiz sürüm standardı (`v$newVersion`) uygulandı.
"@ "@
$releasePayload = @{ $releasePayload = @{
@ -244,7 +222,7 @@ Kaldırma işlemi (tekli veya çoklu) tamamlandığında otomatik devreye giren
$jsonBytes = [System.Text.Encoding]::UTF8.GetBytes($releasePayload) $jsonBytes = [System.Text.Encoding]::UTF8.GetBytes($releasePayload)
# Release var mı kontrol et # Release var mı kontrol et
$releaseUrl = "https://api.github.com/repos/$repoOwner/$repoName/releases/tags/v$newVersion" $releaseUrl = "https://api.github.com/repos/$repoOwner/$repoName/releases/tags/v$newVersion"
$ghRelease = $null $ghRelease = $null
try { try {
@ -252,18 +230,18 @@ Kaldırma işlemi (tekli veya çoklu) tamamlandığında otomatik devreye giren
} catch { } } catch { }
if ($ghRelease) { if ($ghRelease) {
Write-Host "Mevcut release güncelleniyor (ID: $($ghRelease.id))..." -ForegroundColor Yellow Write-Host "Mevcut release güncelleniyor (ID: $($ghRelease.id))..." -ForegroundColor Yellow
$patchUrl = "https://api.github.com/repos/$repoOwner/$repoName/releases/$($ghRelease.id)" $patchUrl = "https://api.github.com/repos/$repoOwner/$repoName/releases/$($ghRelease.id)"
$ghRelease = Invoke-RestMethod -Uri $patchUrl -Headers $apiHeaders -Method Patch -Body $jsonBytes -ContentType "application/json; charset=utf-8" $ghRelease = Invoke-RestMethod -Uri $patchUrl -Headers $apiHeaders -Method Patch -Body $jsonBytes -ContentType "application/json; charset=utf-8"
} else { } else {
Write-Host "Yeni release oluşturuluyor..." -ForegroundColor Green Write-Host "Yeni release oluÅŸturuluyor..." -ForegroundColor Green
$postUrl = "https://api.github.com/repos/$repoOwner/$repoName/releases" $postUrl = "https://api.github.com/repos/$repoOwner/$repoName/releases"
$ghRelease = Invoke-RestMethod -Uri $postUrl -Headers $apiHeaders -Method Post -Body $jsonBytes -ContentType "application/json; charset=utf-8" $ghRelease = Invoke-RestMethod -Uri $postUrl -Headers $apiHeaders -Method Post -Body $jsonBytes -ContentType "application/json; charset=utf-8"
} }
# ZIP dosyasını release asset olarak yükle # ZIP dosyasını release asset olarak yükle
if ($ghRelease -and (Test-Path $zipPath)) { if ($ghRelease -and (Test-Path $zipPath)) {
Write-Host "Sürüm paketi ($zipName) release sayfasına yükleniyor..." -ForegroundColor Cyan Write-Host "Sürüm paketi ($zipName) release sayfasına yükleniyor..." -ForegroundColor Cyan
# Eski asset varsa sil # Eski asset varsa sil
if ($ghRelease.assets) { if ($ghRelease.assets) {
@ -284,23 +262,23 @@ Kaldırma işlemi (tekli veya çoklu) tamamlandığında otomatik devreye giren
} }
$zipBytes = [System.IO.File]::ReadAllBytes($zipPath) $zipBytes = [System.IO.File]::ReadAllBytes($zipPath)
$uploadResult = Invoke-RestMethod -Uri $uploadUri -Headers $uploadHeaders -Method Post -Body $zipBytes -ContentType "application/zip" $uploadResult = Invoke-RestMethod -Uri $uploadUri -Headers $uploadHeaders -Method Post -Body $zipBytes -ContentType "application/zip"
Write-Host "Asset başarıyla yüklendi: $($uploadResult.browser_download_url)" -ForegroundColor Green Write-Host "Asset baÅŸarıyla yüklendi: $($uploadResult.browser_download_url)" -ForegroundColor Green
} }
Write-Host "`nGitHub Release yayında:" -ForegroundColor Yellow Write-Host "`nGitHub Release yayında:" -ForegroundColor Yellow
Write-Host " -> https://github.com/$repoOwner/$repoName/releases/tag/v$newVersion" -ForegroundColor White Write-Host " -> https://github.com/$repoOwner/$repoName/releases/tag/v$newVersion" -ForegroundColor White
} }
} catch { } catch {
Write-Host "GitHub Releases API işlemi uyarısı: $_" -ForegroundColor Yellow Write-Host "GitHub Releases API iÅŸlemi uyarısı: $_" -ForegroundColor Yellow
} }
Write-Host "`n✅ Başarıyla Tamamlandı!" -ForegroundColor Green Write-Host "`n✅ BaÅŸarıyla Tamamlandı!" -ForegroundColor Green
Write-Host "Ana dizinde oluşturulan son güncel sürüm klasörü:" -ForegroundColor Yellow Write-Host "Ana dizinde oluÅŸturulan son güncel sürüm klasörü:" -ForegroundColor Yellow
Write-Host " -> $targetFolderName" -ForegroundColor White Write-Host " -> $targetFolderName" -ForegroundColor White
Write-Host "GitHub Release için hazır paket:" -ForegroundColor White Write-Host "GitHub Release için hazır paket:" -ForegroundColor White
Write-Host " -> $zipName" -ForegroundColor Cyan Write-Host " -> $zipName" -ForegroundColor Cyan
Write-Host "Kullanıma hazır yürütülebilir dosyalar:" -ForegroundColor Gray Write-Host "Kullanıma hazır yürütülebilir dosyalar:" -ForegroundColor Gray
Write-Host " - LDUninstaller.Launcher.exe (Yönetici yetkili başlatıcı)" Write-Host " - LDUninstaller.Launcher.exe (Yönetici yetkili baÅŸlatıcı)"
Write-Host " - LDUninstaller.UI.exe (Modern Fluent Arayüz)" Write-Host " - LDUninstaller.UI.exe (Modern Fluent Arayüz)"
Write-Host " - LDUninstaller.CLI.exe (Konsol aracı)" Write-Host " - LDUninstaller.CLI.exe (Konsol aracı)"
Write-Host " - LDUninstaller.Automatizer.exe (Otomasyon ajanı)`n" Write-Host " - LDUninstaller.Automatizer.exe (Otomasyon ajanı)`n"