Release build fixes (#5317)

small fixes found while doing current work item

-replace expects a regex when I wanted to do a literal replace.
Have Sync-PSTags fix any issues it find
This commit is contained in:
Travis Plunk 2017-11-02 16:05:56 -07:00 committed by GitHub
parent 98244a89f9
commit 74ebde9d3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ function Start-PSPackage {
# Replace binaries with crossgen'ed binaires from publish folder.
Get-ChildItem -Recurse $Source | ForEach-Object {
$relativePath = $_.FullName -replace $Source, ''
$relativePath = $_.FullName.Replace($Source, '')
$publishPath = Join-Path $publishSource -ChildPath $relativePath
if (Test-Path -Path $publishPath)
{

View File

@ -54,7 +54,7 @@ try{
$env:platform = $null
Write-Verbose "Sync'ing Tags..." -verbose
Sync-PSTags
Sync-PSTags -AddRemoteIfMissing
Write-Verbose "Bootstrapping powershell build..." -verbose
Start-PSBootstrap -Force -Package