Skip to content

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
akordowski committed Jul 14, 2018
1 parent 0db83a7 commit 9d67e2a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@echo off
powershell ./build.ps1 %CAKE_ARGS% %*
powershell ./build.ps1 -settings_skipverification=true %CAKE_ARGS% %*
10 changes: 8 additions & 2 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@ Task("CreateImage")
.IsDependeeOf("Image")
.Does(() =>
{
var pathTarget = Build.Paths.Directories.Image.Combine("lib/net461");
var pathTarget = Build.Paths.Directories.Image.Combine("lib/netstandard2.0");
var pathSource = string.Format("{0}/{1}/**/{1}.*", Build.Paths.Directories.PublishedLibraries, Build.Parameters.Title);
var files = GetFiles(pathSource).Where(fileSystemInfo =>
{
var fullPath = fileSystemInfo.FullPath;
return fullPath.EndsWith(".dll") || fullPath.EndsWith(".pdb") || fullPath.EndsWith(".xml");
});

CleanDirectory(pathTarget);
CopyFiles(Build.Paths.Files.License.ToString(), Build.Paths.Directories.Image);
CopyFiles(Build.Paths.Directories.PublishedLibraries + "/Cake.Compression/Cake.Compression.*", pathTarget);
CopyFiles(files, pathTarget);
});

Build
Expand Down

0 comments on commit 9d67e2a

Please sign in to comment.