Skip to content

Commit b41f97f

Browse files
authored
Merge pull request #3585 from chocolatey/hotfix/2.4.1
(release) 2.4.1
2 parents c704807 + b9ef43f commit b41f97f

23 files changed

+1561
-63
lines changed

.github/workflows/build.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
5151
- name: Build with .Net Framework
5252
shell: powershell
53-
run: ./build.ps1 --verbosity=diagnostic --target=CI --testExecutionType=unit --shouldRunOpenCover=false
53+
run: ./build.ps1 --verbosity=diagnostic --target=CI --testExecutionType=unit --shouldRunOpenCover=false --shouldBuildMsi=true
5454
- name: Upload Windows build results
5555
uses: actions/upload-artifact@v3
5656
# Always upload build results
@@ -67,6 +67,7 @@ jobs:
6767
code_drop\Packages\NuGet\*.nupkg
6868
code_drop\Packages\Chocolatey\*.nupkg
6969
code_drop\MsBuild.log
70+
code_drop\MSIs\en-US\chocolatey-*.msi
7071
# - uses: coverallsapp/github-action@master
7172
# with:
7273
# github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -140,4 +141,4 @@ jobs:
140141
# uses: coverallsapp/github-action@master
141142
# with:
142143
# github-token: ${{ secrets.GITHUB_TOKEN }}
143-
# parallel-finished: true
144+
# parallel-finished: true

.teamcity/settings.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ object Chocolatey : BuildType({
6565
script {
6666
name = "Call Cake"
6767
scriptContent = """
68-
build.official.bat --verbosity=diagnostic --target=CI --testExecutionType=unit --shouldRunOpenCover=false
68+
build.official.bat --verbosity=diagnostic --target=CI --testExecutionType=unit --shouldRunOpenCover=false --shouldBuildMsi=true
6969
""".trimIndent()
7070
}
7171
}

recipe.cake

+2-5
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ Task("Prepare-Chocolatey-Packages")
167167
.IsDependeeOf("Create-Chocolatey-Packages")
168168
.IsDependeeOf("Verify-PowerShellScripts")
169169
.IsDependeeOf("Sign-Assemblies")
170+
.IsDependentOn("Copy-Nuspec-Folders")
170171
.WithCriteria(() => BuildParameters.BuildAgentOperatingSystem == PlatformFamily.Windows, "Skipping because not running on Windows")
171172
.WithCriteria(() => BuildParameters.ShouldRunChocolatey, "Skipping because execution of Chocolatey has been disabled")
172173
.Does(() =>
@@ -363,7 +364,6 @@ Task("Prepare-NuGet-Packages")
363364

364365
Task("Prepare-MSI")
365366
.WithCriteria(() => BuildParameters.ShouldBuildMsi, "Skipping because creation of MSI has been disabled")
366-
.WithCriteria(() => BuildParameters.IsTagged, "Skipping because build is not tagged")
367367
.IsDependeeOf("Build-MSI")
368368
.Does(() =>
369369
{
@@ -378,9 +378,6 @@ Task("Prepare-MSI")
378378
}
379379
});
380380

381-
BuildParameters.Tasks.BuildMsiTask
382-
.WithCriteria(() => BuildParameters.IsTagged, "Skipping because build is not tagged");
383-
384381
Task("Create-TarGz-Packages")
385382
.IsDependentOn("Build")
386383
.IsDependeeOf("Package")
@@ -438,7 +435,7 @@ BuildParameters.SetParameters(context: Context,
438435
getMsisToSign: getMsisToSign,
439436
getILMergeConfigs: getILMergeConfigs,
440437
preferDotNetGlobalToolUsage: !IsRunningOnWindows(),
441-
shouldBuildMsi: true,
438+
shouldBuildMsi: false,
442439
msiUsedWithinNupkg: false,
443440
shouldAuthenticodeSignMsis: true,
444441
shouldRunNuGet: IsRunningOnWindows(),

src/chocolatey.tests.integration/chocolatey.tests.integration.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,7 @@
485485
</ItemGroup>
486486
<ItemGroup>
487487
<Compile Include="infrastructure.app\builders\ConfigurationBuilderSpecs.cs" />
488+
<Compile Include="infrastructure.app\nuget\NugetListSpecs.cs" />
488489
<Compile Include="infrastructure.app\services\FilesServiceSpecs.cs" />
489490
<Compile Include="infrastructure\commands\CommandExecutorSpecs.cs" />
490491
<Compile Include="infrastructure\cryptography\CryptoHashProviderSpecs.cs" />

0 commit comments

Comments
 (0)