Skip to content

Commit

Permalink
fix zipping
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhathcock committed May 14, 2024
1 parent b198154 commit ced6391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Build/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ IEnumerable<string> GetFiles(string d)
{
var (path, framework) = x;

var fullPath = Path.Combine(".", Path.GetDirectoryName(path), "bin", "Release", framework);
var fullPath = Path.Combine(".", path, "bin", "Release", framework);
var outputDir = Path.Combine(".", "output");
Directory.CreateDirectory(outputDir);

var outputPath = Path.Combine(outputDir, $"{Path.GetDirectoryName(path)}.zip");
var outputPath = Path.Combine(outputDir, $"{Path.GetFileName(path)}.zip");

Console.WriteLine($"Zipping: '{fullPath}' to '{outputPath}'");
ZipFile.CreateFromDirectory(fullPath, outputPath);
Expand Down

0 comments on commit ced6391

Please sign in to comment.