Skip to content

Commit

Permalink
TEMP - Allow building MSI without a tag
Browse files Browse the repository at this point in the history
This is a temporary commit to allow us to get an MSI outside of requiring a tagged build.
  • Loading branch information
corbob committed Aug 2, 2023
1 parent e05e807 commit f79fbdb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions recipe.cake
Original file line number Diff line number Diff line change
Expand Up @@ -314,13 +314,12 @@ Task("Prepare-NuGet-Packages")

Task("Prepare-MSI")
.WithCriteria(() => BuildParameters.ShouldBuildMsi, "Skipping because creation of MSI has been disabled")
.WithCriteria(() => BuildParameters.IsTagged, "Skipping because build is not tagged")
.IsDependeeOf("Build-MSI")
.Does(() =>
{
var installScriptPath = BuildParameters.RootDirectoryPath + "/src/chocolatey.install/assets/Install.ps1";
if (!FileExists(installScriptPath))
if (!FileExists(installScriptPath))
{
DownloadFile(
"https://community.chocolatey.org/install.ps1",
Expand All @@ -329,9 +328,6 @@ Task("Prepare-MSI")
}
});

BuildParameters.Tasks.BuildMsiTask
.WithCriteria(() => BuildParameters.IsTagged, "Skipping because build is not tagged");

Task("Create-TarGz-Packages")
.IsDependentOn("Build")
.IsDependeeOf("Package")
Expand Down Expand Up @@ -400,4 +396,4 @@ ToolSettings.SetToolSettings(context: Context);

BuildParameters.PrintParameters(Context);

Build.Run();
Build.Run();

0 comments on commit f79fbdb

Please sign in to comment.