File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 1
1
init :
2
2
- git config --global core.autocrlf true
3
+ install :
4
+ # .NET Core SDK binaries
5
+ # Download .NET Core SDK and add to PATH
6
+ - ps : $urlCurrent = "https://go.microsoft.com/fwlink/?LinkID=834991"
7
+ - ps : $urlPreview = "https://dotnetcli.blob.core.windows.net/dotnet/Sdk/rel-1.0.0/dotnet-dev-win-x64.latest.zip"
8
+ - ps : $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk"
9
+ - ps : mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null
10
+ - ps : $tempFileCurrent = [System.IO.Path]::GetTempFileName()
11
+ - ps : $tempFilePreview = [System.IO.Path]::GetTempFileName()
12
+ - ps : (New-Object System.Net.WebClient).DownloadFile($urlCurrent, $tempFileCurrent)
13
+ - ps : (New-Object System.Net.WebClient).DownloadFile($urlPreview, $tempFilePreview)
14
+ - ps : Add-Type -AssemblyName System.IO.Compression.FileSystem; [System.IO.Compression.ZipFile]::ExtractToDirectory($tempFileCurrent, $env:DOTNET_INSTALL_DIR)
15
+ - ps : Add-Type -AssemblyName System.IO.Compression.FileSystem; [System.IO.Compression.ZipFile]::ExtractToDirectory($tempFilePreview, $env:DOTNET_INSTALL_DIR + "preview")
16
+ - ps : Move-Item "${env:DOTNET_INSTALL_DIR}preview\sdk\*" "${env:DOTNET_INSTALL_DIR}\sdk\"
17
+ - ps : $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
3
18
build_script :
4
19
- npm install -g npm@^3.0.0
5
20
- npm --prefix templates/package-builder install
You can’t perform that action at this time.
0 commit comments