Skip to content

Commit

Permalink
fix: ignore configuration param for linux and osx
Browse files Browse the repository at this point in the history
  • Loading branch information
takuya-takeuchi committed Jul 12, 2019
1 parent d5d34bd commit ba10dc5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion nuget/BuildOSX.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ foreach($BuildTarget in $BuildTargets)
$dll = $BuildSourceHash[$key]
$dstDir = Join-Path $Current $libraryDir

CopyToArtifact -configuration "Release" -srcDir $srcDir -build $build -libraryName $dll -dstDir $dstDir -rid $rid
CopyToArtifact -srcDir $srcDir -build $build -libraryName $dll -dstDir $dstDir -rid $rid
}
}

Expand Down
2 changes: 1 addition & 1 deletion nuget/BuildUbuntu16.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ foreach($BuildTarget in $BuildTargets)
$dll = $BuildSourceHash[$key]
$dstDir = Join-Path $Current $libraryDir

CopyToArtifact -configuration "Release" -srcDir $srcDir -build $build -libraryName $dll -dstDir $dstDir -rid $rid
CopyToArtifact -srcDir $srcDir -build $build -libraryName $dll -dstDir $dstDir -rid $rid
}
}

Expand Down
19 changes: 15 additions & 4 deletions nuget/BuildUtils.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -416,11 +416,22 @@ function Build([Config]$Config)
Set-Location -Path $Current
}

function CopyToArtifact([string]$configuration, [string]$srcDir, [string]$build, [string]$libraryName, [string]$dstDir, [string]$rid)
function CopyToArtifact()
{
$binary = Join-Path ${srcDir} ${build} | `
Join-Path -ChildPath ${configuration} | `
Join-Path -ChildPath ${libraryName}
Param([string]$srcDir, [string]$build, [string]$libraryName, [string]$dstDir, [string]$rid, [string]$configuration="")

if ($configuration)
{
$binary = Join-Path ${srcDir} ${build} | `
Join-Path -ChildPath ${configuration} | `
Join-Path -ChildPath ${libraryName}
}
else
{
$binary = Join-Path ${srcDir} ${build} | `
Join-Path -ChildPath ${libraryName}
}

$output = Join-Path $dstDir runtimes | `
Join-Path -ChildPath ${rid} | `
Join-Path -ChildPath native | `
Expand Down

0 comments on commit ba10dc5

Please sign in to comment.