Skip to content

Commit

Permalink
More copy
Browse files Browse the repository at this point in the history
  • Loading branch information
zentron committed Sep 6, 2024
1 parent f8b3f16 commit d4ef787
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,18 @@ public Build()

if (rid == FixedRuntimes.Windows && OperatingSystem.IsWindows())
{
var path = SourceDirectory / "Calamari.FullFrameworkTools" / "bin" / Configuration / Frameworks.Net462;
CopyDirectoryRecursively(path, (publishPath / "Calamari.FullFrameworkTools"), DirectoryExistsPolicy.Merge, FileExistsPolicy.Overwrite);
CopyFullFrameworkFiles(publishPath);
}
}
});


void CopyFullFrameworkFiles(AbsolutePath targetPath)
{
var path = SourceDirectory / "Calamari.FullFrameworkTools" / "bin" / Configuration / Frameworks.Net462;
CopyDirectoryRecursively(path, (targetPath / "Calamari.FullFrameworkTools"), DirectoryExistsPolicy.Merge, FileExistsPolicy.Overwrite);
}

Target PublishCalamariFlavourProjects =>
_ => _
.DependsOn(Compile)
Expand Down Expand Up @@ -463,6 +469,8 @@ void CompressCalamariProject(Project project)
var defaultTarget = OperatingSystem.IsWindows() ? Frameworks.Net462 : Frameworks.Net60;
AbsolutePath binFolder = SourceDirectory / "Calamari.Tests" / "bin" / Configuration / defaultTarget;
Directory.Exists(binFolder);

CopyFullFrameworkFiles(binFolder);
var actions = new List<Action>
{
() =>
Expand Down

0 comments on commit d4ef787

Please sign in to comment.