fix(window): grant Tauri v2 window permissions so close/minimize/maximize/drag work; v3.0.1; publish.ps1 picks version-matched bundle and writes BOM-less latest.json

This commit is contained in:
LilDosto 2026-11-12 21:04:16 +03:00
parent 55e0ec099f
commit 8393b59988
12 changed files with 45 additions and 22 deletions

View file

@ -1,7 +1,7 @@
{
"name": "ld-uninstaller",
"private": true,
"version": "3.0.0",
"version": "3.0.1",
"type": "module",
"scripts": {
"dev": "vite",

View file

@ -1,11 +1,11 @@
# ==============================================================================
# ==============================================================================
# LD Uninstaller v3.0.0 - Self-Hosted OTA Dağıtım ve Yayınlama Scripti
# ==============================================================================
[CmdletBinding()]
param(
[switch]$UploadOnly,
[switch]$SkipUpload,
[string]$Notes = "LD Uninstaller v3.0.0: Tauri v2 + Rust mimarisi, Restart Manager tabanlı kilit açıcı (Shredder), 20 katmanlı kalıntı temizliği ve otomatik güncelleme desteği."
[string]$Notes = "LD Uninstaller v3.0.1: Pencere kontrol butonları (kapat/küçült/büyüt) ve sürükleme düzeltildi. Tauri v2 + Rust mimarisi, Restart Manager tabanlı kilit açıcı (Shredder), 20 katmanlı kalıntı temizliği ve otomatik güncelleme desteği."
)
$ErrorActionPreference = "Stop"
@ -97,7 +97,7 @@ if (-not $UploadOnly) {
foreach ($loc in $SearchLocations) {
if (Test-Path $loc) {
$foundExe = Get-ChildItem -Path $loc -Filter "*setup*.exe" -File -Recurse -ErrorAction SilentlyContinue | Select-Object -First 1
$foundExe = Get-ChildItem -Path $loc -Filter "*_${Version}_x64-setup.exe" -File -Recurse -ErrorAction SilentlyContinue | Sort-Object LastWriteTime -Descending | Select-Object -First 1
if ($foundExe) {
$SetupExe = $foundExe
$possibleSig = "$($foundExe.FullName).sig"
@ -152,11 +152,11 @@ if (-not $UploadOnly) {
$JsonContent = $LatestManifest | ConvertTo-Json -Depth 5
$LatestJsonPath = Join-Path $DistServerDir "latest.json"
[System.IO.File]::WriteAllText($LatestJsonPath, $JsonContent, [System.Text.Encoding]::UTF8)
[System.IO.File]::WriteAllText($LatestJsonPath, $JsonContent, (New-Object System.Text.UTF8Encoding $false))
# SHA256 Özet Dosyası
$ShaSummary = "DOSYA: $DestExeName`nSHA256: $Hash`nTARIH: $PubDate`nURL: $UpdateUrl`n"
[System.IO.File]::WriteAllText((Join-Path $DistServerDir "sha256.txt"), $ShaSummary, [System.Text.Encoding]::UTF8)
[System.IO.File]::WriteAllText((Join-Path $DistServerDir "sha256.txt"), $ShaSummary, (New-Object System.Text.UTF8Encoding $false))
Write-Host " -> 'dist_server\latest.json' başarıyla oluşturuldu." -ForegroundColor Green
} else {
@ -175,7 +175,7 @@ if (-not $UploadOnly) {
}
}
$JsonContent = $LatestManifest | ConvertTo-Json -Depth 5
[System.IO.File]::WriteAllText($LatestJsonPath, $JsonContent, [System.Text.Encoding]::UTF8)
[System.IO.File]::WriteAllText($LatestJsonPath, $JsonContent, (New-Object System.Text.UTF8Encoding $false))
}
}

2
src-tauri/Cargo.lock generated
View file

@ -2132,7 +2132,7 @@ dependencies = [
[[package]]
name = "ld_uninstaller"
version = "3.0.0"
version = "3.0.1"
dependencies = [
"chrono",
"csv",

View file

@ -1,6 +1,6 @@
[package]
name = "ld_uninstaller"
version = "3.0.0"
version = "3.0.1"
description = "LD Uninstaller - Modern High Performance Windows Uninstaller & System Cleaner"
authors = ["LD Team"]
edition = "2021"

View file

@ -5,6 +5,17 @@
"windows": ["main"],
"permissions": [
"core:default",
"core:window:allow-close",
"core:window:allow-destroy",
"core:window:allow-minimize",
"core:window:allow-maximize",
"core:window:allow-unmaximize",
"core:window:allow-toggle-maximize",
"core:window:allow-is-maximized",
"core:window:allow-start-dragging",
"core:window:allow-show",
"core:window:allow-set-focus",
"core:window:allow-unminimize",
"opener:default",
"updater:default",
"process:default"

View file

@ -7,7 +7,7 @@ use std::process::Command;
pub struct UpdateService;
const CURRENT_VERSION: &str = "3.0.0";
const CURRENT_VERSION: &str = "3.0.1";
const UPDATE_URL: &str = "https://ttmadethat.shop/ldapps/version.json";
impl UpdateService {

View file

@ -25,7 +25,7 @@ impl AppState {
// Günlükleyiciyi (Logger) başlat
AppLogger::init(&config_dir);
log_info("=== LD Uninstaller v3.0.0 Başlatıldı ===");
log_info("=== LD Uninstaller v3.0.1 Başlatıldı ===");
// Kendini İyileştiren Yapılandırma Yöneticisi (Self-Healing Config)
let exclusions_file = config_dir.join("exclusions.json");

View file

@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "LD Uninstaller",
"version": "3.0.0",
"version": "3.0.1",
"identifier": "com.lduninstaller.app",
"build": {
"beforeDevCommand": "npm run dev",
@ -12,6 +12,7 @@
"app": {
"windows": [
{
"label": "main",
"title": "LD Uninstaller",
"decorations": false,
"width": 1200,

View file

@ -67,7 +67,7 @@ export const Sidebar: React.FC = () => {
{/* Alt Bilgi */}
<div className="px-4 py-2 border-t border-ld-border/50 text-[11px] text-slate-500 flex items-center justify-between">
<span>LD Uninstaller Engine</span>
<span className="text-emerald-400/80 font-mono">v3.0.0</span>
<span className="text-emerald-400/80 font-mono">v3.0.1</span>
</div>
</aside>
);

View file

@ -29,12 +29,23 @@ export const Titlebar: React.FC = () => {
};
}, []);
const handleMinimize = () => appWindow.minimize();
const handleMaximize = async () => {
await appWindow.toggleMaximize();
setIsMaximized(await appWindow.isMaximized());
const handleMinimize = () => {
appWindow.minimize().catch((e) => console.error('minimize failed', e));
};
const handleMaximize = async () => {
try {
await appWindow.toggleMaximize();
setIsMaximized(await appWindow.isMaximized());
} catch (e) {
console.error('toggleMaximize failed', e);
}
};
const handleClose = () => {
appWindow.close().catch(() => {
// close() bir olay dinleyicisi tarafından engellenirse pencereyi doğrudan yok et
appWindow.destroy().catch((e) => console.error('close failed', e));
});
};
const handleClose = () => appWindow.close();
return (
<div
@ -50,7 +61,7 @@ export const Titlebar: React.FC = () => {
LD UNINSTALLER
</span>
<span className="text-[10px] px-1.5 py-0.5 rounded bg-sky-500/10 text-sky-400 font-mono border border-sky-500/20">
v3.0.0
v3.0.1
</span>
{isElevated ? (
<span className="text-[10px] px-1.5 py-0.5 rounded bg-emerald-500/15 text-emerald-400 font-semibold border border-emerald-500/30 flex items-center gap-1">

View file

@ -46,7 +46,7 @@ export const UpdateModal: React.FC = () => {
<div className="p-3 rounded-lg bg-ld-card border border-ld-border">
<span className="text-slate-400 block text-[11px]">Mevcut Sürüm</span>
<span className="font-mono font-semibold text-slate-200 mt-0.5 block">
v{availableUpdate.currentVersion || '3.0.0'}
v{availableUpdate.currentVersion || '3.0.1'}
</span>
</div>
<div className="p-3 rounded-lg bg-emerald-500/10 border border-emerald-500/20">

View file

@ -299,14 +299,14 @@ export const SettingsView: React.FC = () => {
<div className="p-5 rounded-xl bg-ld-surface border border-ld-border text-xs text-slate-400 space-y-2">
<div className="flex items-center gap-2 text-slate-200 font-semibold">
<Laptop className="w-4 h-4 text-sky-400" />
<span>LD Uninstaller v3.0.0 Mimari Bilgisi</span>
<span>LD Uninstaller v3.0.1 Mimari Bilgisi</span>
</div>
<p className="text-[11px] leading-relaxed">
LD Uninstaller, <strong>Tauri v2</strong>, <strong>Rust 1.99</strong>, <strong>React 18</strong>, <strong>TypeScript</strong> ve <strong>TailwindCSS</strong> mimarisi ile sıfırdan inşa edilmiştir. Windows Restart Manager kilit kırma motoru, 20 katmanlı derin kalıntı temizleme ve Minisign imzalı Self-Hosted OTA güncelleme altyapısına sahiptir.
</p>
<div className="pt-2 text-[10px] text-slate-500 flex justify-between border-t border-ld-border/40">
<span>Dağıtım & OTA: TT Made That (ttmadethat.shop)</span>
<span>Versiyon: 3.0.0 (Rust Engine)</span>
<span>Versiyon: 3.0.1 (Rust Engine)</span>
</div>
</div>
</div>