Skip to content

Commit

Permalink
update cake
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontemagno committed Sep 13, 2017
1 parent a763bab commit bcad098
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
16 changes: 15 additions & 1 deletion bootstrapper.ps1
Expand Up @@ -15,6 +15,7 @@ $NUGET3_EXE = Join-Path $TOOLS_DIR "nuget3.exe"
$PACKAGES_CONFIG = Join-Path $TOOLS_DIR "packages.config"
$CAKE_EXE = Join-Path $TOOLS_DIR "Cake/Cake.exe"
$XC_EXE = Join-Path $TOOLS_DIR "xamarin-component.exe"
$CAKE_PACKAGES_CONFIG = Join-Path $PSScriptRoot "cake.packages.config"

# Should we use the new Roslyn?
$UseExperimental = "";
Expand Down Expand Up @@ -71,11 +72,24 @@ if ($LASTEXITCODE -ne 0)
exit $LASTEXITCODE
}

# Make sure that packages.config exist.
if (!(Test-Path $PACKAGES_CONFIG)) {
if (!(Test-Path $CAKE_PACKAGES_CONFIG)) {
Write-Verbose -Message "Downloading packages.config..."
try { Invoke-WebRequest -Uri http://cakebuild.net/bootstrapper/packages -OutFile $PACKAGES_CONFIG } catch {
Throw "Could not download packages.config."
}
} else {
Write-Verbose -Message "using local cake.packages.config..."
Copy-Item $CAKE_PACKAGES_CONFIG $PACKAGES_CONFIG
}
}

# Make sure that Cake has been installed.
if (!(Test-Path $CAKE_EXE)) {
Throw "Could not find Cake.exe"
}

# Start Cake
Invoke-Expression "$CAKE_EXE `"$Script`" -target=`"$Target`" -configuration=`"$Configuration`" -verbosity=`"$Verbosity`" $UseDryRun $UseExperimental"
Invoke-Expression "$CAKE_EXE `"$Script`" -target=`"$Target`" --settings_skipverification=true -configuration=`"$Configuration`" -verbosity=`"$Verbosity`" $UseDryRun $UseExperimental"
exit $LASTEXITCODE
4 changes: 4 additions & 0 deletions cake.packages.config
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Cake" version="0.17.0" />
</packages>

0 comments on commit bcad098

Please sign in to comment.