Skip to content

Commit

Permalink
Binary drop script, Windows. Next iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyo26 committed Feb 25, 2016
1 parent dc42ff9 commit b96c852
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Tools/make_binary_drop_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ Copy-Item Examples -Recurse -Destination $baseDropPath\Examples

# Copy all items from the share
Write-Host "Current user is "(Get-Item env:USERDOMAIN).Value"\"(Get-Item env:USERNAME).Value
Copy-Item $sharePath"\*" -Recurse -Destination $baseDropPath
# Copy-Item $sharePath"\*" -Recurse -Destination $baseDropPath
# Try with Robocopy
$robocopyCmd = "robocopy " + $sharePath + " " + $baseDropPath + " /s/e"
Write-Host "Invoking" $robocopyCmd
Invoke-Expression $robocopyCmd



# Make ZIP file
Expand All @@ -58,4 +63,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 b96c852

Please sign in to comment.