Repository navigation
Attach Windows portable zips to each release - #776
ChrisonSimtian wants to merge 2 commits into
Conversation
e83efc7 to
2e45491
Compare
Add a PublishWindowsPortable target that publishes the fallout CLI framework-dependent for win-x64 and win-arm64 and zips each build. The release workflow uploads the zips as release assets, after a Windows job checks that fallout.exe --version runs.
2e45491 to
b2f7494
Compare
Replace the partial class Build.WindowsPortable.cs with an IPublishWindowsPortable interface that Build implements, the same way ICompile and IPack work. No partial class and no static members.
There was a problem hiding this comment.
@dennisdoomen I told claude off for using partial and this is what it came up with instead. Not quite sure yet how to feel about this. But thats what I meant with patterns and anti patterns. In all fairness, I only told it what I do NOT want, not what I want
There was a problem hiding this comment.
But isn't a partial class for Fallout builds not what we want? I'm doing this myself at my client projects too and it works quite nice.
|
@dennisdoomen we need a |
|
leaving this in draft for now, not sure if thats the shape I want for our build, but I want the EXE for winget |
| done | ||
|
|
||
| # Bundled artifact distribution. Attaches all nupkgs, plus the PackageGuard SBOM and HTML | ||
| # Smoke test for the Windows portable zip (#775): unzip the x64 build on a real Windows |
There was a problem hiding this comment.
🤔I would do this also in a Fallout target. Then you can test it locally as well.
There was a problem hiding this comment.
But isn't a partial class for Fallout builds not what we want? I'm doing this myself at my client projects too and it works quite nice.
Problem
Releases carry only
.nupkgfiles. winget needs a zip with a portable.exe(#775).Outcome
PublishWindowsPortablepublishessrc/Fallout.Cliframework-dependent forwin-x64andwin-arm64.fallout-<rid>.zip.fallout.exeis at the zip root.fallout.exe --version. It must pass before the release is published.Notes
Fallout.Cli.exe. The target renames it tofallout.exe.publish-packages-release.ymlis hand-written, so it is edited directly.Part of #775 (first acceptance item only; the winget manifest is a separate task)