diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 46bbf00..8d61ce8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -953,12 +953,28 @@ jobs: $stagedPayloadDir = Join-Path $stageRoot "payloads/$platformKey" ./scripts/Prepare-PdccOut.ps1 -SourceDir $payloadArtifact.FullName -OutputDir $stagedPayloadDir - $subChannel = ($platformKey -replace '-', '_') + "_release_folderClassic" - $env:PDC_SUBCHANNEL = $subChannel $publishRoot = Join-Path $outRoot "published/$platformKey" New-Item -ItemType Directory -Path $publishRoot -Force | Out-Null + $parts = $platformKey.Split('-', 2) + if ($parts.Count -lt 2) { + throw "Invalid platform key format: $platformKey" + } + $os = $parts[0] + $arch = $parts[1] + $packageName = "LanMountainDesktop_app_${os}_${arch}_release_folder.zip" + $packagePath = Join-Path $publishRoot $packageName - Push-Location $stagedPayloadDir + & $client $config GenerateFileMap $stagedPayloadDir + if ($LASTEXITCODE -ne 0) { + throw "PDCC GenerateFileMap failed for $platformKey." + } + + if (Test-Path $packagePath) { + Remove-Item -LiteralPath $packagePath -Force + } + Compress-Archive -Path (Join-Path $stagedPayloadDir '*') -DestinationPath $packagePath -Force + + Push-Location $publishRoot try { & $client $config Publish $env:PRIMARY_VERSION $env:VERSION $publishRoot if ($LASTEXITCODE -ne 0) { diff --git a/phainon.yml b/phainon.yml index 9cb4a18..dfe8a8f 100644 --- a/phainon.yml +++ b/phainon.yml @@ -21,3 +21,12 @@ fileRepoRoot: "__FILE_REPO_ROOT__" archiveRoot: "__ARCHIVE_ROOT__" bucketKeyRoot: "lanmountain/update/repo/" archiveBucketKeyRoot: "lanmountain/update/installers/" +appChangeLogPath: "$(thisFileDir)/../CHANGELOG.md" +appChangeLogTemplate: | + $(changeLog) + + --- + + ## Checksums And Downloads + + $(hashes)