File tree Expand file tree Collapse file tree 3 files changed +55
-8
lines changed
Expand file tree Collapse file tree 3 files changed +55
-8
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,13 @@ install:
4747 - bundle config --local path vendor/bundle
4848 - gem install bundler --quiet --no-ri --no-rdoc
4949 - gem install github_changelog_generator --quiet --no-ri --no-rdoc
50- - dotnet tool install --tool-path . nbgv
51- - ps : .\install-vsix-appveyor.ps1
50+ - ps : |
51+ .\install-7zip.ps1
52+ if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
53+
54+ - ps : |
55+ .\install-nf-build-components.ps1
56+ if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
5257
5358before_build :
5459- ps : >-
@@ -57,15 +62,12 @@ before_build:
5762
5863 nuget restore source\nanoFramework.Networking.Sntp.sln
5964
60- .\nbgv cloud -p source -a -c
61-
6265build_script :
6366- ps : msbuild source\nanoFramework.Networking.Sntp.sln /p:PublicRelease=true /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
67+ - ps : Update-AppveyorBuild -Version "$($env:NBGV_SemVer1)"
6468
6569before_deploy :
6670 - ps : >-
67- .\nbgv cloud --version=$env:NBGV_SemVer1
68-
6971 $env:MyNuGetVersion = $env:NBGV_NuGetPackageVersion -replace "\-g$env:NBGV_GitCommitIdShort", " "
7072
7173 .\generate-change-log.ps1
@@ -75,8 +77,6 @@ before_deploy:
7577 - ps : >-
7678 .\commit-assemblyinfo-changes.ps1
7779
78- .\generate-change-log.ps1
79-
8080 Push-AppveyorArtifact $env:APPVEYOR_BUILD_FOLDER\nanoFramework.Networking.Sntp.$env:MyNuGetVersion.nupkg
8181
8282after_deploy :
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2018 The nanoFramework project contributors
2+ # See LICENSE file in the project root for full license information.
3+
4+ # This PS download and installs 7zip executable
5+
6+ $env: SEVENZIP_PATH = " C:\7zip"
7+
8+ md $ ($env: SEVENZIP_PATH ) > $null
9+
10+ Write-Host " Downloading 7zip..."
11+
12+ $url = " https://bintray.com/nfbot/internal-build-tools/download_file?file_path=7za.exe"
13+
14+ $output = " $env: SEVENZIP_PATH \7z.exe"
15+
16+ # download executable with utility
17+ (New-Object Net.WebClient).DownloadFile($url , $output )
18+
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2018 The nanoFramework project contributors
2+ # See LICENSE file in the project root for full license information.
3+
4+ [System.Net.WebClient ]$webClient = New-Object System.Net.WebClient
5+ $webClient.UseDefaultCredentials = $true
6+
7+ function DownloadVsixFile ($fileUrl , $downloadFileName )
8+ {
9+ # Write-Debug "Download VSIX file from $fileUrl to $downloadFileName"
10+ # Write-Host "Download VSIX file..."
11+ $webClient.DownloadFile ($fileUrl , $downloadFileName )
12+ }
13+
14+ # download VS extension
15+ $vsixPath = Join-Path $ ($env: temp ) " nanoFramework.Tools.VS2017.Extension.zip"
16+ # this was the original download URL that provides the last version, but the marketplace is blocking access to it
17+ # "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/vs-publisher-1470366/vsextensions/nanoFrameworkVS2017Extension/0/vspackage
18+ DownloadVsixFile " https://www.myget.org/F/nanoframework-dev/vsix/47973986-ed3c-4b64-ba40-a9da73b44ef7-1.0.1.0.vsix" $vsixPath
19+
20+ # unzip extension
21+ # Write-Debug "Unzip extension content"
22+ # Write-Host "Unzip extension content"
23+ Invoke-Expression " $env: SEVENZIP_PATH \7z.exe x $vsixPath -bd -o$env: temp \nf-extension" > $null
24+
25+ # copy build files to msbuild location
26+ # Write-Debug "Copy build files to msbuild location"
27+ # Write-Host "Copy build files to msbuild location"
28+ $msbuildPath = " C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild"
29+ Copy-Item - Path " $env: temp \nf-extension\`$ MSBuild\nanoFramework" - Destination $msbuildPath - Recurse
You can’t perform that action at this time.
0 commit comments