Release v2.4.0: 20 Katmanli Derin Kalinti ve Artik Temizleme Motoru
This commit is contained in:
parent
3867a440a0
commit
8a4834d5de
7 changed files with 999 additions and 82 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
<Project>
|
<Project>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Version>2.3.1</Version>
|
<Version>2.4.0</Version>
|
||||||
<AssemblyVersion>2.3.1.0</AssemblyVersion>
|
<AssemblyVersion>2.4.0.0</AssemblyVersion>
|
||||||
<FileVersion>2.3.1.0</FileVersion>
|
<FileVersion>2.4.0.0</FileVersion>
|
||||||
<Product>LD Uninstaller</Product>
|
<Product>LD Uninstaller</Product>
|
||||||
<Company>LD Software</Company>
|
<Company>LD Software</Company>
|
||||||
<Authors>LD Software</Authors>
|
<Authors>LD Software</Authors>
|
||||||
|
|
|
||||||
17
release.ps1
17
release.ps1
|
|
@ -1,6 +1,7 @@
|
||||||
param(
|
param(
|
||||||
[ValidateSet("major", "minor", "patch", "current")]
|
[ValidateSet("major", "minor", "patch", "current")]
|
||||||
[string]$Type = "current"
|
[string]$Type = "current",
|
||||||
|
[string]$Message = ""
|
||||||
)
|
)
|
||||||
|
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
|
|
@ -103,19 +104,27 @@ try { Remove-Item -Path (Join-Path $root "publish") -Recurse -Force -ErrorAction
|
||||||
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)
|
||||||
|
# Eski ZIP arşivlerini temizle
|
||||||
|
$oldZips = Get-ChildItem -Path $root -File -Filter "LD-Uninstaller-v*.zip"
|
||||||
|
foreach ($oz in $oldZips) {
|
||||||
|
try { Remove-Item -Path $oz.FullName -Force -ErrorAction SilentlyContinue } catch { }
|
||||||
|
}
|
||||||
|
|
||||||
$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
|
||||||
if (Test-Path $zipPath) { Remove-Item $zipPath -Force }
|
|
||||||
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)) {
|
||||||
|
$Message = "Release v${newVersion}: Gelismis 20 Katmanli Derin Kalinti Temizleme Motoru"
|
||||||
|
}
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Release v${newVersion}: Ultra akici performans yamasi, coklu disk analizi ve otomatik kalinti temizleyici"
|
git commit -m $Message
|
||||||
git tag -a "v$newVersion" -m "LD Uninstaller v$newVersion" -f
|
git tag -a "v$newVersion" -m "LD Uninstaller v$newVersion - $Message" -f
|
||||||
|
|
||||||
$remote = git remote get-url origin 2>$null
|
$remote = git remote get-url origin 2>$null
|
||||||
if ($remote) {
|
if ($remote) {
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -8,6 +8,14 @@ namespace LDUninstaller.Core.Junk
|
||||||
{
|
{
|
||||||
private static readonly HashSet<string> BlacklistedDirs = new(StringComparer.OrdinalIgnoreCase);
|
private static readonly HashSet<string> BlacklistedDirs = new(StringComparer.OrdinalIgnoreCase);
|
||||||
private static readonly HashSet<string> BlacklistedRegPaths = new(StringComparer.OrdinalIgnoreCase);
|
private static readonly HashSet<string> BlacklistedRegPaths = new(StringComparer.OrdinalIgnoreCase);
|
||||||
|
private static readonly HashSet<string> ProtectedNames = new(StringComparer.OrdinalIgnoreCase)
|
||||||
|
{
|
||||||
|
"windows", "system32", "syswow64", "winsxs", "microsoft", "windows nt",
|
||||||
|
"windows defender", "windows security", "internet explorer", "microsoft.net",
|
||||||
|
"windowspowershell", "dotnet", "common files", "desktop", "downloads",
|
||||||
|
"documents", "pictures", "music", "videos", "appdata", "locallow", "roaming", "local",
|
||||||
|
"temp", "system volume information", "$recycle.bin", "recovery", "boot", "perflogs"
|
||||||
|
};
|
||||||
|
|
||||||
static SafetyBlacklist()
|
static SafetyBlacklist()
|
||||||
{
|
{
|
||||||
|
|
@ -28,15 +36,33 @@ namespace LDUninstaller.Core.Junk
|
||||||
AddDir(drive.RootDirectory.FullName);
|
AddDir(drive.RootDirectory.FullName);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Registry Blacklists
|
// Registry Core Containers & Blacklists
|
||||||
BlacklistedRegPaths.Add(@"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion");
|
BlacklistedRegPaths.Add(@"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion");
|
||||||
BlacklistedRegPaths.Add(@"HKLM\SYSTEM\CurrentControlSet");
|
BlacklistedRegPaths.Add(@"HKLM\SYSTEM\CurrentControlSet");
|
||||||
|
BlacklistedRegPaths.Add(@"HKLM\SYSTEM\CurrentControlSet\Services");
|
||||||
BlacklistedRegPaths.Add(@"HKLM\SYSTEM");
|
BlacklistedRegPaths.Add(@"HKLM\SYSTEM");
|
||||||
BlacklistedRegPaths.Add(@"HKLM\SOFTWARE\Microsoft");
|
BlacklistedRegPaths.Add(@"HKLM\SOFTWARE\Microsoft");
|
||||||
BlacklistedRegPaths.Add(@"HKLM\SOFTWARE\Classes");
|
BlacklistedRegPaths.Add(@"HKLM\SOFTWARE\Classes");
|
||||||
BlacklistedRegPaths.Add(@"HKCU\SOFTWARE\Microsoft");
|
BlacklistedRegPaths.Add(@"HKCU\SOFTWARE\Microsoft");
|
||||||
BlacklistedRegPaths.Add(@"HKCU\SOFTWARE\Microsoft\Windows");
|
BlacklistedRegPaths.Add(@"HKCU\SOFTWARE\Microsoft\Windows");
|
||||||
BlacklistedRegPaths.Add(@"HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion");
|
BlacklistedRegPaths.Add(@"HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion");
|
||||||
|
BlacklistedRegPaths.Add(@"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run");
|
||||||
|
BlacklistedRegPaths.Add(@"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce");
|
||||||
|
BlacklistedRegPaths.Add(@"HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run");
|
||||||
|
BlacklistedRegPaths.Add(@"HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce");
|
||||||
|
BlacklistedRegPaths.Add(@"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths");
|
||||||
|
BlacklistedRegPaths.Add(@"HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths");
|
||||||
|
BlacklistedRegPaths.Add(@"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache");
|
||||||
|
BlacklistedRegPaths.Add(@"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree");
|
||||||
|
BlacklistedRegPaths.Add(@"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions");
|
||||||
|
BlacklistedRegPaths.Add(@"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved");
|
||||||
|
BlacklistedRegPaths.Add(@"HKLM\SOFTWARE\RegisteredApplications");
|
||||||
|
BlacklistedRegPaths.Add(@"HKCU\SOFTWARE\RegisteredApplications");
|
||||||
|
BlacklistedRegPaths.Add(@"HKCR\*\shellex\ContextMenuHandlers");
|
||||||
|
BlacklistedRegPaths.Add(@"HKCR\Directory\shellex\ContextMenuHandlers");
|
||||||
|
BlacklistedRegPaths.Add(@"HKCR\CLSID");
|
||||||
|
BlacklistedRegPaths.Add(@"HKLM\SOFTWARE\Classes\CLSID");
|
||||||
|
BlacklistedRegPaths.Add(@"HKCU\SOFTWARE\Classes\CLSID");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void AddDir(string? path)
|
private static void AddDir(string? path)
|
||||||
|
|
@ -60,9 +86,13 @@ namespace LDUninstaller.Core.Junk
|
||||||
if (BlacklistedDirs.Contains(norm))
|
if (BlacklistedDirs.Contains(norm))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
string name = Path.GetFileName(norm);
|
||||||
|
if (ProtectedNames.Contains(name))
|
||||||
|
return true;
|
||||||
|
|
||||||
// Parent must not be directly root or users root without specific subfolder
|
// Parent must not be directly root or users root without specific subfolder
|
||||||
var di = new DirectoryInfo(norm);
|
var di = new DirectoryInfo(norm);
|
||||||
if (di.Parent == null) return true; // C:\
|
if (di.Parent == null) return true; // e.g. C:\
|
||||||
if (di.Parent.FullName.Equals(@"C:\Users", StringComparison.OrdinalIgnoreCase)) return true;
|
if (di.Parent.FullName.Equals(@"C:\Users", StringComparison.OrdinalIgnoreCase)) return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ namespace LDUninstaller.Core.Models
|
||||||
Directory,
|
Directory,
|
||||||
File,
|
File,
|
||||||
Service,
|
Service,
|
||||||
|
ScheduledTask,
|
||||||
FirewallRule,
|
FirewallRule,
|
||||||
UserAssist,
|
UserAssist,
|
||||||
Shortcut
|
Shortcut
|
||||||
|
|
@ -21,6 +22,19 @@ namespace LDUninstaller.Core.Models
|
||||||
string EntryName { get; }
|
string EntryName { get; }
|
||||||
string Path { get; }
|
string Path { get; }
|
||||||
JunkType Type { get; }
|
JunkType Type { get; }
|
||||||
|
string TypeDisplay => Type switch
|
||||||
|
{
|
||||||
|
JunkType.Directory => "📁 Klasör",
|
||||||
|
JunkType.File => "📄 Dosya",
|
||||||
|
JunkType.RegistryKey => "🔑 Kayıt Anahtarı",
|
||||||
|
JunkType.RegistryValue => "🏷️ Kayıt Değeri",
|
||||||
|
JunkType.Service => "⚙️ Windows Servisi",
|
||||||
|
JunkType.ScheduledTask => "⏱️ Görev Zamanlayıcı",
|
||||||
|
JunkType.FirewallRule => "🛡️ Güvenlik Duvarı",
|
||||||
|
JunkType.UserAssist => "📊 UserAssist",
|
||||||
|
JunkType.Shortcut => "🔗 Kısayol",
|
||||||
|
_ => Type.ToString()
|
||||||
|
};
|
||||||
ConfidenceLevel Confidence { get; }
|
ConfidenceLevel Confidence { get; }
|
||||||
string Reason { get; }
|
string Reason { get; }
|
||||||
bool Selected { get; set; }
|
bool Selected { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</DataGridTemplateColumn.CellTemplate>
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
</DataGridTemplateColumn>
|
</DataGridTemplateColumn>
|
||||||
<DataGridTextColumn Header="Tür" Binding="{Binding Type}" Width="110" />
|
<DataGridTextColumn Header="Tür" Binding="{Binding TypeDisplay}" Width="145" />
|
||||||
<DataGridTemplateColumn Header="Güven Seviyesi" Width="130">
|
<DataGridTemplateColumn Header="Güven Seviyesi" Width="130">
|
||||||
<DataGridTemplateColumn.CellTemplate>
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"major": 2,
|
"major": 2,
|
||||||
"minor": 3,
|
"minor": 4,
|
||||||
"patch": 1,
|
"patch": 0,
|
||||||
"version": "2.3.1"
|
"version": "2.4.0"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue