diff --git a/src/Everything2Everything.App/App.xaml.cs b/src/Everything2Everything.App/App.xaml.cs index 36ae4ad..44b3cba 100644 --- a/src/Everything2Everything.App/App.xaml.cs +++ b/src/Everything2Everything.App/App.xaml.cs @@ -79,6 +79,7 @@ public partial class App : Application var window = new MainWindow(Engine, Settings); MainWindow = window; window.Show(); + window.Activate(); } private void ShowConvertDialog(IReadOnlyList files) @@ -86,6 +87,7 @@ public partial class App : Application var window = new Views.MainWindow(Engine, Settings, files); MainWindow = window; window.Show(); + window.Activate(); } private void ShowDiagnoseWindow() @@ -93,6 +95,7 @@ public partial class App : Application var window = new DiagnoseWindow(Engine); MainWindow = window; window.Show(); + window.Activate(); } private async Task RunQuickAsync(IReadOnlyList files, string outputExtension) diff --git a/tools/Publish-Release.ps1 b/tools/Publish-Release.ps1 index 9ff2eaa..a34a088 100644 --- a/tools/Publish-Release.ps1 +++ b/tools/Publish-Release.ps1 @@ -227,8 +227,14 @@ $ReleaseNotes try { $releaseUrl = "$ForgejoHost/api/v1/repos/$ForgejoOwner/$ForgejoRepo/releases" - $releaseResponse = Invoke-RestMethod -Uri $releaseUrl -Method Post -Headers $authHeader -Body $releaseBody - Write-Host "✅ Forgejo 정식 릴리즈 생성 완료: $($releaseResponse.html_url)" -ForegroundColor Green + $existingReleases = Invoke-RestMethod -Uri $releaseUrl -Method Get -Headers $authHeader + $releaseResponse = $existingReleases | Where-Object { $_.tag_name -eq $Tag } | Select-Object -First 1 + if (-not $releaseResponse) { + $releaseResponse = Invoke-RestMethod -Uri $releaseUrl -Method Post -Headers $authHeader -Body $releaseBody + Write-Host "✅ Forgejo 정식 릴리즈 생성 완료: $($releaseResponse.html_url)" -ForegroundColor Green + } else { + Write-Host "ℹ️ 기존 릴리즈 확인됨 (ID: $($releaseResponse.id)): $($releaseResponse.html_url)" -ForegroundColor Cyan + } # 첨부 파일 업로드 $uploadUrl = "$ForgejoHost/api/v1/repos/$ForgejoOwner/$ForgejoRepo/releases/$($releaseResponse.id)/assets"