Browse Source

Update Sophia.yml

pull/149/head
Dmitry Nefedov 4 years ago
committed by GitHub
parent
commit
dcf3e72953
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 41
      .github/workflows/Sophia.yml

41
.github/workflows/Sophia.yml

@ -57,9 +57,50 @@ jobs:
Copy-Item -Path "Sophia\PowerShell 5.1\*" -Destination $BUILD_DIR -Recurse -Force
Copy-Item -Path "Sophia\PowerShell 7.x\*" -Destination $BUILD_DIR -Recurse -Force
$Parameters = @{
Uri = "https://www.nuget.org/api/v2/package/Microsoft.Windows.SDK.NET.Ref/10.0.19041.14"
OutFile = "$PSScriptRoot\microsoft.windows.sdk.net.ref.nupkg"
Verbose = [switch]::Present
}
Invoke-WebRequest @Parameters
Rename-Item -Path "$PSScriptRoot\microsoft.windows.sdk.net.ref.nupkg" -NewName "microsoft.windows.sdk.net.ref.zip"
$Parameters = @{
Path = "$PSScriptRoot\microsoft.windows.sdk.net.ref.zip"
DestinationPath = "$PSScriptRoot\sdk"
Force = [switch]::Present
Verbose = [switch]::Present
}
Expand-Archive @Parameters
$LatestRelease = (Invoke-RestMethod -Uri "https://api.github.com/repos/microsoft/CsWinRT/releases").tag_name | Select-Object -First 1
$Parameters = @{
Uri = "https://github.com/microsoft/CsWinRT/releases/download/$LatestRelease/Microsoft.Windows.CsWinRT.1.1.3.nupkg"
OutFile = "$PSScriptRoot\Microsoft.Windows.CsWinRT.nupkg"
Verbose = [switch]::Present
}
Invoke-WebRequest @Parameters
Rename-Item -Path "$PSScriptRoot\Microsoft.Windows.CsWinRT.nupkg" -NewName "Microsoft.Windows.CsWinRT.zip" -Force
$Parameters = @{
Path = "$PSScriptRoot\Microsoft.Windows.CsWinRT.zip"
DestinationPath = "$PSScriptRoot\CsWinRT"
Force = [switch]::Present
Verbose = [switch]::Present
}
Expand-Archive @Parameters
Copy-Item -Path "$PSScriptRoot\sdk\lib\Microsoft.Windows.SDK.NET.dll" -Destination $BUILD_DIR -Recurse -Force
Copy-Item -Path "$PSScriptRoot\CsWinRT\lib\net5.0\WinRT.Runtime.dll" -Destination $BUILD_DIR -Recurse -Force
Compress-Archive -Path $BUILD_DIR -DestinationPath $ZIP -Force
Remove-Item -Path "$PSScriptRoot\CsWinRT", "$PSScriptRoot\sdk" -Recurse -Force
Remove-Item -Path "$PSScriptRoot\Microsoft.Windows.CsWinRT.zip", "$PSScriptRoot\microsoft.windows.sdk.net.ref.zip" -Force
- name: Build LTSC
run: |
$BUILD_DIR = "Sophia Script LTSC v"

Loading…
Cancel
Save