Skip to content

fix(release): generate Velopack delta packages#168

Merged
mchave3 merged 1 commit into
mainfrom
fix/velopack-update-check
May 16, 2026
Merged

fix(release): generate Velopack delta packages#168
mchave3 merged 1 commit into
mainfrom
fix/velopack-update-check

Conversation

@mchave3
Copy link
Copy Markdown
Collaborator

@mchave3 mchave3 commented May 16, 2026

Summary

  • Download the latest matching Velopack release before packaging so vpk pack can generate delta packages.
  • Pass GITHUB_TOKEN to the release packaging step for authenticated GitHub release downloads.
  • Keep copied release assets scoped to the current package version while preserving Velopack output metadata for upload.

Reason

Velopack only creates delta packages when the previous full package is available in the packaging output directory. The release script cleared that directory before packing, so releases only produced full packages.

Main changes

  • Added optional previous-release download support to Publish-FoundryVelopack.ps1.
  • Added -SkipPreviousReleaseDownload for local packaging scenarios that should not prefetch the latest release.
  • Updated release asset cleanup/copy filters for both full and delta packages.
  • Exposed GITHUB_TOKEN to the release asset build step.

Testing notes

  • Parsed scripts/Publish-FoundryVelopack.ps1 with the PowerShell parser.
  • Ran git diff --check.
  • Generated local x64 Velopack assets for 26.5.16-build.2; verified full, delta, and MSI outputs.
  • Generated local arm64 Velopack assets for 26.5.16-build.2; verified full, delta, and MSI outputs.
  • Generated a local J-1 x64 MSI for 26.5.15-build.2 with -SkipPreviousReleaseDownload.

@github-actions github-actions Bot added the ci CI, automation, or workflow changes label May 16, 2026
@mchave3 mchave3 self-assigned this May 16, 2026
@mchave3 mchave3 marked this pull request as ready for review May 16, 2026 10:31
Copilot AI review requested due to automatic review settings May 16, 2026 10:31
@mchave3 mchave3 merged commit 56dccf3 into main May 16, 2026
10 checks passed
@mchave3 mchave3 deleted the fix/velopack-update-check branch May 16, 2026 10:32
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enables Velopack delta package generation in release builds by downloading the previous release into the packaging output directory before vpk pack. Also adjusts asset cleanup/copy filters to include delta packages and threads GITHUB_TOKEN into the release workflow step for authenticated downloads.

Changes:

  • Add VelopackFeedUrl, GitHubToken, and SkipPreviousReleaseDownload parameters to Publish-FoundryVelopack.ps1 and invoke vpk download github before packing.
  • Extend release-asset cleanup to include *-delta.nupkg files and scope the post-pack copy filter to the current PackVersion.
  • Expose GITHUB_TOKEN to the Build release assets step in release.yml.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
scripts/Publish-FoundryVelopack.ps1 Download previous release into $releaseDir so vpk can produce delta packages; update asset filter patterns for delta nupkgs and version-scoped copy.
.github/workflows/release.yml Pass github.token to the release packaging step so the script can authenticate GitHub downloads.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI, automation, or workflow changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants