Browse Source

Updated download scripts

pull/741/head
Dmitry Nefedov 2 weeks ago
parent
commit
ccddc4b643
  1. 5
      Download_Latest_Sophia.ps1
  2. 10
      Download_Sophia.ps1
  3. 2
      Windows_Builds.json
  4. 2
      supported_windows_builds.json

5
Download_Latest_Sophia.ps1

@ -44,9 +44,8 @@ catch [System.Net.WebException]
Write-Warning -Message "https://codeload.github.com is unreachable. Please check Internet connection or change your DNS records."
Write-Information -MessageData "" -InformationAction Continue
$DNS = (Get-NetRoute -AddressFamily IPv4 | Where-Object -FilterScript {$_.Protocol -eq "NetMgmt"} | Get-NetAdapter | Where-Object -FilterScript {
($_.Status -eq "Up") -and (-not $_.Virtual)
} | Get-DnsClientServerAddress -AddressFamily IPv4).ServerAddresses
$InterfaceIndex = (Find-NetRoute -RemoteIPAddress "1.1.1.1" | Select-Object -First 1).InterfaceIndex
$DNS = (Get-NetAdapter -InterfaceIndex $InterfaceIndex | Get-DnsClientServerAddress -AddressFamily IPv4).ServerAddresses
Write-Warning -Message "You're using $(if ($DNS.Count -gt 1) {$DNS -join ', '} else {$DNS}) DNS records"

10
Download_Sophia.ps1

@ -40,9 +40,8 @@ catch [System.Net.WebException]
Write-Warning -Message "https://api.github.com is unreachable. Please check Internet connection or change your DNS records."
Write-Information -MessageData "" -InformationAction Continue
$DNS = (Get-NetRoute -AddressFamily IPv4 | Where-Object -FilterScript {$_.Protocol -eq "NetMgmt"} | Get-NetAdapter | Where-Object -FilterScript {
($_.Status -eq "Up") -and (-not $_.Virtual)
} | Get-DnsClientServerAddress -AddressFamily IPv4).ServerAddresses
$InterfaceIndex = (Find-NetRoute -RemoteIPAddress "1.1.1.1" | Select-Object -First 1).InterfaceIndex
$DNS = (Get-NetAdapter -InterfaceIndex $InterfaceIndex | Get-DnsClientServerAddress -AddressFamily IPv4).ServerAddresses
Write-Warning -Message "You're using $(if ($DNS.Count -gt 1) {$DNS -join ', '} else {$DNS}) DNS records"
@ -67,9 +66,8 @@ catch [System.Net.WebException]
Write-Warning -Message "https://raw.githubusercontent.com is unreachable. Please check Internet connection or change your DNS records."
Write-Information -MessageData "" -InformationAction Continue
$DNS = (Get-NetRoute -AddressFamily IPv4 | Where-Object -FilterScript {$_.Protocol -eq "NetMgmt"} | Get-NetAdapter | Where-Object -FilterScript {
($_.Status -eq "Up") -and (-not $_.Virtual)
} | Get-DnsClientServerAddress -AddressFamily IPv4).ServerAddresses
$InterfaceIndex = (Find-NetRoute -RemoteIPAddress "1.1.1.1" | Select-Object -First 1).InterfaceIndex
$DNS = (Get-NetAdapter -InterfaceIndex $InterfaceIndex | Get-DnsClientServerAddress -AddressFamily IPv4).ServerAddresses
Write-Warning -Message "You're using $(if ($DNS.Count -gt 1) {$DNS -join ', '} else {$DNS}) DNS records"

2
Windows_Builds.json

@ -1,7 +1,7 @@
{
"Windows_10_URL": "https://learn.microsoft.com/en-us/windows/release-health/release-information",
"Windows_11_URL": "https://learn.microsoft.com/en-us/windows/release-health/windows11-release-information",
"Windows_10_Minor": "7663",
"Windows_10_Minor": "6456",
"Windows_10_LTSC_2019_Minor": "9121",
"Windows_10_LTSC_2021_Minor": "7663",
"Windows_11_LTSC_2024_Minor": "9168",

2
supported_windows_builds.json

@ -1,7 +1,7 @@
{
"Windows_10_URL": "https://learn.microsoft.com/en-us/windows/release-health/release-information",
"Windows_11_URL": "https://learn.microsoft.com/en-us/windows/release-health/windows11-release-information",
"Windows_10": "7663",
"Windows_10": "6456",
"Windows_10_LTSC_2019": "9121",
"Windows_10_LTSC_2021": "7663",
"Windows_11_LTSC_2024": "9168",

Loading…
Cancel
Save