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:
parent
55e0ec099f
commit
8393b59988
12 changed files with 45 additions and 22 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "ld-uninstaller",
|
"name": "ld-uninstaller",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "3.0.0",
|
"version": "3.0.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|
|
||||||
12
publish.ps1
12
publish.ps1
|
|
@ -1,11 +1,11 @@
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# LD Uninstaller v3.0.0 - Self-Hosted OTA Dağıtım ve Yayınlama Scripti
|
# LD Uninstaller v3.0.0 - Self-Hosted OTA Dağıtım ve Yayınlama Scripti
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
param(
|
param(
|
||||||
[switch]$UploadOnly,
|
[switch]$UploadOnly,
|
||||||
[switch]$SkipUpload,
|
[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"
|
$ErrorActionPreference = "Stop"
|
||||||
|
|
@ -97,7 +97,7 @@ if (-not $UploadOnly) {
|
||||||
|
|
||||||
foreach ($loc in $SearchLocations) {
|
foreach ($loc in $SearchLocations) {
|
||||||
if (Test-Path $loc) {
|
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) {
|
if ($foundExe) {
|
||||||
$SetupExe = $foundExe
|
$SetupExe = $foundExe
|
||||||
$possibleSig = "$($foundExe.FullName).sig"
|
$possibleSig = "$($foundExe.FullName).sig"
|
||||||
|
|
@ -152,11 +152,11 @@ if (-not $UploadOnly) {
|
||||||
|
|
||||||
$JsonContent = $LatestManifest | ConvertTo-Json -Depth 5
|
$JsonContent = $LatestManifest | ConvertTo-Json -Depth 5
|
||||||
$LatestJsonPath = Join-Path $DistServerDir "latest.json"
|
$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ı
|
# SHA256 Özet Dosyası
|
||||||
$ShaSummary = "DOSYA: $DestExeName`nSHA256: $Hash`nTARIH: $PubDate`nURL: $UpdateUrl`n"
|
$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
|
Write-Host " -> 'dist_server\latest.json' başarıyla oluşturuldu." -ForegroundColor Green
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -175,7 +175,7 @@ if (-not $UploadOnly) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$JsonContent = $LatestManifest | ConvertTo-Json -Depth 5
|
$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
2
src-tauri/Cargo.lock
generated
|
|
@ -2132,7 +2132,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ld_uninstaller"
|
name = "ld_uninstaller"
|
||||||
version = "3.0.0"
|
version = "3.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"csv",
|
"csv",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ld_uninstaller"
|
name = "ld_uninstaller"
|
||||||
version = "3.0.0"
|
version = "3.0.1"
|
||||||
description = "LD Uninstaller - Modern High Performance Windows Uninstaller & System Cleaner"
|
description = "LD Uninstaller - Modern High Performance Windows Uninstaller & System Cleaner"
|
||||||
authors = ["LD Team"]
|
authors = ["LD Team"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,17 @@
|
||||||
"windows": ["main"],
|
"windows": ["main"],
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"core:default",
|
"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",
|
"opener:default",
|
||||||
"updater:default",
|
"updater:default",
|
||||||
"process:default"
|
"process:default"
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ use std::process::Command;
|
||||||
|
|
||||||
pub struct UpdateService;
|
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";
|
const UPDATE_URL: &str = "https://ttmadethat.shop/ldapps/version.json";
|
||||||
|
|
||||||
impl UpdateService {
|
impl UpdateService {
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ impl AppState {
|
||||||
|
|
||||||
// Günlükleyiciyi (Logger) başlat
|
// Günlükleyiciyi (Logger) başlat
|
||||||
AppLogger::init(&config_dir);
|
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)
|
// Kendini İyileştiren Yapılandırma Yöneticisi (Self-Healing Config)
|
||||||
let exclusions_file = config_dir.join("exclusions.json");
|
let exclusions_file = config_dir.join("exclusions.json");
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"$schema": "https://schema.tauri.app/config/2",
|
"$schema": "https://schema.tauri.app/config/2",
|
||||||
"productName": "LD Uninstaller",
|
"productName": "LD Uninstaller",
|
||||||
"version": "3.0.0",
|
"version": "3.0.1",
|
||||||
"identifier": "com.lduninstaller.app",
|
"identifier": "com.lduninstaller.app",
|
||||||
"build": {
|
"build": {
|
||||||
"beforeDevCommand": "npm run dev",
|
"beforeDevCommand": "npm run dev",
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
"app": {
|
"app": {
|
||||||
"windows": [
|
"windows": [
|
||||||
{
|
{
|
||||||
|
"label": "main",
|
||||||
"title": "LD Uninstaller",
|
"title": "LD Uninstaller",
|
||||||
"decorations": false,
|
"decorations": false,
|
||||||
"width": 1200,
|
"width": 1200,
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ export const Sidebar: React.FC = () => {
|
||||||
{/* Alt Bilgi */}
|
{/* Alt Bilgi */}
|
||||||
<div className="px-4 py-2 border-t border-ld-border/50 text-[11px] text-slate-500 flex items-center justify-between">
|
<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>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>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -29,12 +29,23 @@ export const Titlebar: React.FC = () => {
|
||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const handleMinimize = () => appWindow.minimize();
|
const handleMinimize = () => {
|
||||||
const handleMaximize = async () => {
|
appWindow.minimize().catch((e) => console.error('minimize failed', e));
|
||||||
await appWindow.toggleMaximize();
|
};
|
||||||
setIsMaximized(await appWindow.isMaximized());
|
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 (
|
return (
|
||||||
<div
|
<div
|
||||||
|
|
@ -50,7 +61,7 @@ export const Titlebar: React.FC = () => {
|
||||||
LD UNINSTALLER
|
LD UNINSTALLER
|
||||||
</span>
|
</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">
|
<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>
|
</span>
|
||||||
{isElevated ? (
|
{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">
|
<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">
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ export const UpdateModal: React.FC = () => {
|
||||||
<div className="p-3 rounded-lg bg-ld-card border border-ld-border">
|
<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="text-slate-400 block text-[11px]">Mevcut Sürüm</span>
|
||||||
<span className="font-mono font-semibold text-slate-200 mt-0.5 block">
|
<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>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="p-3 rounded-lg bg-emerald-500/10 border border-emerald-500/20">
|
<div className="p-3 rounded-lg bg-emerald-500/10 border border-emerald-500/20">
|
||||||
|
|
|
||||||
|
|
@ -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="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">
|
<div className="flex items-center gap-2 text-slate-200 font-semibold">
|
||||||
<Laptop className="w-4 h-4 text-sky-400" />
|
<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>
|
</div>
|
||||||
<p className="text-[11px] leading-relaxed">
|
<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.
|
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>
|
</p>
|
||||||
<div className="pt-2 text-[10px] text-slate-500 flex justify-between border-t border-ld-border/40">
|
<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>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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue