EngSys updates to support new vcpkg.json format (#2153)

* Use linux for vcpkg release

* Force lf line endings

* Set config correctly

* Better core.eol syntax and sequencing

* Try using linux host which uses LF by default

* Revert "Try using linux host which uses LF by default"

This reverts commit 160eb22b647e851a50f9d1e7b157a1e385fe946f.

* Use vcpkg.exe to format the manifest

* Spell correctly

* Move format-manfiest
This commit is contained in:
Daniel Jurek 2021-04-26 08:56:37 -07:00 committed by GitHub
parent 698e9965c5
commit 61aa827d5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,6 +58,13 @@ Copy-Item `
Write-Host "Files in destination directory:"
Get-ChildItem -Recurse $PortDestinationDirectory | Out-String | Write-Host
Write-Host "./bootstrap-vcpkg.bat"
./bootstrap-vcpkg.bat
# Format the manifest file
Write-Host "./vcpkg.exe format-manifest $PortDestinationDirectory/vcpkg.json"
./vcpkg.exe format-manifest $PortDestinationDirectory/vcpkg.json
Write-Host "git status"
git status
@ -68,10 +75,6 @@ git add -A
Write-Host "git $GitCommitParameters commit -m 'Temporary commit to reset after x-add-version'"
"git $GitCommitParameters commit -m 'Temporary commit to reset after x-add-version'" | Invoke-Expression -Verbose | Write-Host
Write-Host "./bootstrap-vcpkg.bat"
./bootstrap-vcpkg.bat
if ($LASTEXITCODE -ne 0) {
Write-Error "Failed to run bootstrap-vcpkg.bat"
exit 1
@ -82,6 +85,7 @@ if ($DailyRelease) {
$addVersionAdditionalParameters = '--overwrite-version'
}
Write-Host "./vcpkg.exe x-add-version $VcpkgPortName $addVersionAdditionalParameters"
./vcpkg.exe x-add-version $VcpkgPortName $addVersionAdditionalParameters