Allow bootstrap directory to be configured
This commit is contained in:
parent
7a5942939f
commit
ed145b37a6
2 changed files with 7 additions and 0 deletions
|
@ -71,6 +71,10 @@ $env:VSTEST_TRACE_BUILD=1
|
||||||
|
|
||||||
# set the base tools directory
|
# set the base tools directory
|
||||||
$toolsLocalPath = Join-Path $PSScriptRoot "build_tools"
|
$toolsLocalPath = Join-Path $PSScriptRoot "build_tools"
|
||||||
|
if($env:BOOTSTRAP_INSTALL_DIR)
|
||||||
|
{
|
||||||
|
$toolsLocalPath = $env:BOOTSTRAP_INSTALL_DIR
|
||||||
|
}
|
||||||
$bootStrapperPath = Join-Path $toolsLocalPath "bootstrap.ps1"
|
$bootStrapperPath = Join-Path $toolsLocalPath "bootstrap.ps1"
|
||||||
# if the boot-strapper script doesn't exist then download it
|
# if the boot-strapper script doesn't exist then download it
|
||||||
if ((Test-Path $bootStrapperPath) -eq 0)
|
if ((Test-Path $bootStrapperPath) -eq 0)
|
||||||
|
|
|
@ -147,6 +147,9 @@ export VSTEST_TRACE_BUILD=1
|
||||||
|
|
||||||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
|
||||||
toolsLocalPath="$REPOROOT/build_tools"
|
toolsLocalPath="$REPOROOT/build_tools"
|
||||||
|
if [ ! -z $BOOTSTRAP_INSTALL_DIR]; then
|
||||||
|
toolsLocalPath = $BOOTSTRAP_INSTALL_DIR
|
||||||
|
fi
|
||||||
bootStrapperPath="$toolsLocalPath/bootstrap.sh"
|
bootStrapperPath="$toolsLocalPath/bootstrap.sh"
|
||||||
dotnetInstallPath="$toolsLocalPath/dotnet-install.sh"
|
dotnetInstallPath="$toolsLocalPath/dotnet-install.sh"
|
||||||
if [ ! -f $bootStrapperPath ]; then
|
if [ ! -f $bootStrapperPath ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue