Skip to content

Commit

Permalink
edit chocolatey installs to comply with new choco and also make 64 bi…
Browse files Browse the repository at this point in the history
…t compliant
  • Loading branch information
mwrock committed Apr 5, 2015
1 parent c69596e commit 47e936e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions BuildScripts/default.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ properties {
}
$nugetExe = "$env:ChocolateyInstall\ChocolateyInstall\nuget"
$ftpHost="waws-prod-bay-001.ftp.azurewebsites.windows.net"
$msbuildExe="$env:ProgramFiles\MSBuild\12.0\Bin\msbuild.exe"
$msbuildExe="${env:ProgramFiles(x86)}\MSBuild\12.0\Bin\msbuild.exe"
}

Task default -depends Build
Expand Down Expand Up @@ -182,29 +182,29 @@ mget *
bye
"@
$ftpScript | ftp -i -n $ftpHost
if(!(Test-Path $env:ChocolateyInstall\lib\logparser*)) { cinst logparser }
if(!(Test-Path $env:ChocolateyInstall\lib\logparser*)) { cinst logparser -y }
$logParser = "${env:programFiles(x86)}\Log Parser 2.2\LogParser.exe"
.$logparser -i:w3c "SELECT Date, EXTRACT_VALUE(cs-uri-query,'package') as package, COUNT(*) as count FROM * where cs-uri-stem = '/launch/Boxstarter.WebLaunch.Application' Group by Date, package Order by Date, package" -rtp:-1
popd
del "$basedir\sitelogs" -Recurse -Force
}

task Install-MSBuild {
if(!(Test-Path "$env:ProgramFiles\MSBuild\12.0\Bin\msbuild.exe")) { cinst microsoft-build-tools }
if(!(Test-Path "$env:ProgramFiles\MSBuild\12.0\Bin\msbuild.exe")) { cinst microsoft-build-tools -y }
}

task Install-Win8SDK {
if(!(Test-Path "$env:ProgramFiles\Windows Kits\8.1\bin\x64\signtool.exe")) { cinst windows-sdk-8.1 }
if(!(Test-Path "$env:ProgramFiles\Windows Kits\8.1\bin\x64\signtool.exe")) { cinst windows-sdk-8.1 -y }
}

task Install-WebAppTargets {
if(!(Test-Path "$env:ChocolateyInstall\lib\MSBuild.Microsoft.VisualStudio.Web.targets.12.0.4\tools\VSToolsPath\WebApplications\Microsoft.WebApplication.targets")) {
cinst MSBuild.Microsoft.VisualStudio.Web.targets -source http://packages.nuget.org/v1/FeedService.svc/ -version '12.0.4'
cinst MSBuild.Microsoft.VisualStudio.Web.targets -source http://packages.nuget.org/v1/FeedService.svc/ -version '12.0.4' -y
}
}

task Install-WebDeploy {
if(!(Test-Path "$env:ProgramW6432\IIS\Microsoft Web Deploy V3")) { cinst webdeploy }
if(!(Test-Path "$env:ProgramW6432\IIS\Microsoft Web Deploy V3")) { cinst webdeploy -y }
}

function PackDirectory($path, [switch]$AddReleaseNotes){
Expand Down

0 comments on commit 47e936e

Please sign in to comment.