Skip to content

Attach Windows portable zips to each release - #776

Draft
ChrisonSimtian wants to merge 2 commits into
Fallout-build:developfrom
ChrisonSimtian:feature/windows-portable-zip
Draft

ChrisonSimtian wants to merge 2 commits into
Fallout-build:developfrom
ChrisonSimtian:feature/windows-portable-zip

Conversation

@ChrisonSimtian

@ChrisonSimtian ChrisonSimtian commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Releases carry only .nupkg files. winget needs a zip with a portable .exe (#775).

Outcome

  • New build target PublishWindowsPortable publishes src/Fallout.Cli framework-dependent for win-x64 and win-arm64.
  • Each build is zipped as fallout-<rid>.zip. fallout.exe is at the zip root.
  • The release workflow attaches both zips to the GitHub Release.
  • A Windows job unzips the x64 zip and runs fallout.exe --version. It must pass before the release is published.
  • README has a short Windows install note.

Notes

  • The apphost is built as Fallout.Cli.exe. The target renames it to fallout.exe.
  • publish-packages-release.yml is hand-written, so it is edited directly.
  • The arm64 zip is built but not smoke-tested.
  • Out of scope: winget manifests, self-contained publish, signing.

Part of #775 (first acceptance item only; the winget manifest is a separate task)

@ChrisonSimtian ChrisonSimtian added enhancement New feature or request release/Stable Targets the current/stable release labels Dec 3, 2026
@ChrisonSimtian
ChrisonSimtian force-pushed the feature/windows-portable-zip branch from e83efc7 to 2e45491 Compare December 4, 2026 06:54
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.
@ChrisonSimtian
ChrisonSimtian force-pushed the feature/windows-portable-zip branch from 2e45491 to b2f7494 Compare December 4, 2026 07:08
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.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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.

@ChrisonSimtian

Copy link
Copy Markdown
Collaborator Author

@dennisdoomen we need a .exe for winget
the next step would be to sign it via our Signpath cert (should probably do the same for MacOS and linux)

@ChrisonSimtian

Copy link
Copy Markdown
Collaborator Author

leaving this in draft for now, not sure if thats the shape I want for our build, but I want the EXE for winget

@ChrisonSimtian ChrisonSimtian added this to the v10.5 milestone Dec 4, 2026
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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🤔I would do this also in a Fallout target. Then you can test it locally as well.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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.

This branch has not been deployed

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

Labels

enhancement New feature or request release/Stable Targets the current/stable release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants