Organize release structure and documentation

This commit is contained in:
Ray Berezowski
2026-06-02 17:41:12 -04:00
parent e8c0721c39
commit d71c01cbca
6 changed files with 228 additions and 4 deletions

View File

@@ -8,7 +8,6 @@ param(
$ErrorActionPreference = "Stop"
$projectDir = Split-Path -Parent $PSScriptRoot
$workspaceDir = Split-Path -Parent $projectDir
$projectPath = Join-Path $projectDir "TaskbarLauncher.csproj"
[xml]$projectXml = Get-Content -LiteralPath $projectPath
@@ -18,10 +17,10 @@ if ([string]::IsNullOrWhiteSpace($version)) {
}
$packageKind = if ($SelfContained) { "self-contained" } else { "small" }
$releaseRoot = Join-Path $workspaceDir "TaskbarLauncher-releases"
$releaseRoot = Join-Path $projectDir "builds\releases"
$releaseDir = Join-Path $releaseRoot "TaskbarLauncher-v$version-$packageKind"
$zipPath = Join-Path $releaseRoot "TaskbarLauncher-v$version-$packageKind.zip"
$buildDir = Join-Path $workspaceDir "TaskbarLauncher-build-release-$packageKind"
$buildDir = Join-Path $projectDir "builds\intermediate\$packageKind"
Get-Process TaskbarLauncher -ErrorAction SilentlyContinue | Stop-Process -Force
@@ -46,7 +45,10 @@ Get-ChildItem -LiteralPath $releaseDir -Filter "*.pdb" -ErrorAction SilentlyCont
Remove-Item -Force
if ($IncludeCurrentConfig) {
$configPath = Join-Path $workspaceDir "TaskbarLauncher-editor-publish\config.json"
$configPath = Join-Path $projectDir "builds\local-self-contained\config.json"
if (!(Test-Path -LiteralPath $configPath)) {
$configPath = Join-Path (Split-Path -Parent $projectDir) "TaskbarLauncher-editor-publish\config.json"
}
if (Test-Path -LiteralPath $configPath) {
Copy-Item -LiteralPath $configPath -Destination (Join-Path $releaseDir "config.json") -Force
}