Skip to content

Commit

Permalink
feat: add docfx installer (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice authored Dec 20, 2021
1 parent ddaca0c commit 5aa6f4b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
16 changes: 16 additions & 0 deletions windows/src/tools/installer/docfx.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#Requires -Version 5.1

if ( -not ($Version -match '^(\d+\.\d+\.\d+)$') ) {
throw "Invalid $Name version"
}


$file = "$tmp\$Name.zip"
$app = "$apps\$Name"
$url = "https://github.com/dotnet/docfx/releases/download/v$Version/docfx.zip"

Invoke-WebRequest $url -OutFile $file

Expand-Archive -Path $file -DestinationPath $app

Install-Shim -Name docfx -Path docfx.exe
4 changes: 4 additions & 0 deletions windows/test/run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ exec { java --version }
install-tool node 14.17.6
exec { node --version }

# renovate: datasource=github-releases lookupName=dotnet/docfx
install-tool docfx 2.58.9
exec { docfx --version }

# install last to get latest vs updates
install-tool vs-tools

Expand Down

0 comments on commit 5aa6f4b

Please sign in to comment.