choco icon indicating copy to clipboard operation
choco copied to clipboard

(#3465) Allow building an MSI during outside of tagged commits.

Open corbob opened this issue 1 year ago • 1 comments

Description Of Changes

Update the Recipe used to default to not build an MSI. Update the CI configurations to allow building the MSI with the addition of the --shouldBuildMsi=true parameter.

Motivation and Context

Ease the experience of making adjustments to the MSI. Allow us to get an MSI more regularly for testing.

Testing

  1. Ran ./build.bat --target=Build-Msi
  2. Noted that it failed to build as a previous task was skipped.
  3. Ran ./build.bat --target=Build-Msi --shouldBuildMsi=true
  4. Noted that it completed successfully.
  5. Checked the code_drop/Artifacts and code_drop/MSIs/en-US directories to confirm that an MSI was generated.
  6. Monitored the GHA for this PR to note that an MSI was generated.
  7. Monitored the Team City build for this PR to note that an MSI was not generated (because it's not a tagged build and the settings haven't been merged yet)

Operating Systems Testing

  • Windows 10

Change Types Made

  • [ ] Bug fix (non-breaking change).
  • [x] Feature / Enhancement (non-breaking change).
  • [ ] Breaking change (fix or feature that could cause existing functionality to change).
  • [ ] Documentation changes.
  • [ ] PowerShell code changes.

Change Checklist

  • [ ] Requires a change to the documentation.
  • [ ] Documentation has been updated.
  • [ ] Tests to cover my changes, have been added.
  • [ ] All new and existing tests passed?
  • [ ] PowerShell code changes: PowerShell v2 compatibility checked?

Related Issue

Fixes #3465

corbob avatar Jun 13 '24 18:06 corbob

~Note: The MSI task in the GHA ran successfully, but Chocolatey.Cake.Recipe doesn't currently try to upload the MSI on GHA: https://github.com/chocolatey/Chocolatey.Cake.Recipe/blob/e4ac5d739a594f24d62c8502dfa4573da59f5267/Chocolatey.Cake.Recipe/Content/build.cake#L482~

Edit: This is resolved by having the GitHub Action also pick up the MSI and include it with the artifacts.

corbob avatar Jun 13 '24 21:06 corbob

I have added a commit onto this PR that fixes up the Arguments decryption tests for the Download command.

corbob avatar Nov 19 '24 17:11 corbob

@corbob thank you for getting this fixed up!

gep13 avatar Nov 20 '24 11:11 gep13