Skip to content

Commit

Permalink
Script. Next iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyo26 committed Feb 24, 2016
1 parent 59c0416 commit 26f6214
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Tools/make_binary_drop_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
$basePath = "BinaryDrops\ToZip"
$baseDropPath = $basePath + "\cntk"
$zipFile = "BinaryDrops\BinaryDrops.zip"
# $buildPath = "x64\Release"
$buildPath = "x64\Release_CpuOnly"

Write-Host "BUILD_CONFIGURATION = " (Get-Item env:"BUILD_CONFIGURATION").Value

# Make dir structure
# New-Item -Path 'BinaryDrops\cntk\cntk' -ItemType "directory"
Expand All @@ -51,7 +55,7 @@ New-Item -Path $baseDropPath"\prerequisites" -ItemType "directory"
# New-Item -Path 'BinaryDrops\cntk\Examples' -ItemType "directory"

# Copy build binaries
Copy-Item x64\Release -Recurse -Destination $baseDropPath\cntk
Copy-Item $buildPath -Recurse -Destination $baseDropPath\cntk

# Clean unwanted items
If (Test-Path $baseDropPath\cntk\UnitTests) {Remove-Item $baseDropPath\cntk\UnitTests -Recurse}
Expand All @@ -75,4 +79,4 @@ Add-Type -assembly "system.io.compression.filesystem"
[io.compression.zipfile]::CreateFromDirectory($source, $destination)

# Remove ZIP sources
If (Test-Path $basePath) {Remove-Item $basePath -Recurse}
If (Test-Path $basePath) {Remove-Item $basePath -Recurse}

0 comments on commit 26f6214

Please sign in to comment.