Skip to content

Commit

Permalink
Merge pull request #211 from richlander/dotnetcdn
Browse files Browse the repository at this point in the history
Move to dotnet CDN
  • Loading branch information
farag2 authored Dec 27, 2024
2 parents e14d3bc + 0c4f1b5 commit b96917e
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ All efforts are directed towards the SophiApp 2.0 development. Read more: <https
* https://raw.githubusercontent.com
* https://github.com
* https://download.visualstudio.microsoft.com
* https://dotnetcli.blob.core.windows.net
* https://builds.dotnet.microsoft.com
* https://www.google.com
* https://g.live.com
* https://oneclient.sfx.ms
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ scoop install sophiapp
* <https://raw.githubusercontent.com>
* <https://github.com>
* <https://download.visualstudio.microsoft.com>
* <https://dotnetcli.blob.core.windows.net>
* <https://builds.dotnet.microsoft.com>
* <https://www.google.com>
* <https://g.live.com>
* <https://oneclient.sfx.ms>
Expand Down
2 changes: 1 addition & 1 deletion README_cn-si.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ scoop install sophiapp
* <https://raw.githubusercontent.com>
* <https://github.com>
* <https://download.visualstudio.microsoft.com>
* <https://dotnetcli.blob.core.windows.net>
* <https://builds.dotnet.microsoft.com>
* <https://www.google.com>
* <https://g.live.com>
* <https://oneclient.sfx.ms>
Expand Down
2 changes: 1 addition & 1 deletion README_de-de.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ scoop install sophiapp
* <https://raw.githubusercontent.com>
* <https://github.com>
* <https://download.visualstudio.microsoft.com>
* <https://dotnetcli.blob.core.windows.net>
* <https://builds.dotnet.microsoft.com>
* <https://www.google.com>
* <https://g.live.com>
* <https://oneclient.sfx.ms>
Expand Down
2 changes: 1 addition & 1 deletion README_it-it.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ scoop install sophiapp
* <https://raw.githubusercontent.com>
* <https://github.com>
* <https://download.visualstudio.microsoft.com>
* <https://dotnetcli.blob.core.windows.net>
* <https://builds.dotnet.microsoft.com>
* <https://www.google.com>
* <https://g.live.com>
* <https://oneclient.sfx.ms>
Expand Down
2 changes: 1 addition & 1 deletion README_ru-ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ scoop install sophiapp
* <https://raw.githubusercontent.com>
* <https://github.com>
* <https://download.visualstudio.microsoft.com>
* <https://dotnetcli.blob.core.windows.net>
* <https://builds.dotnet.microsoft.com>
* <https://www.google.com>
* <https://g.live.com>
* <https://oneclient.sfx.ms>
Expand Down
2 changes: 1 addition & 1 deletion README_tr-tr.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ scoop install sophiapp
* <https://raw.githubusercontent.com>
* <https://github.com>
* <https://download.visualstudio.microsoft.com>
* <https://dotnetcli.blob.core.windows.net>
* <https://builds.dotnet.microsoft.com>
* <https://www.google.com>
* <https://g.live.com>
* <https://oneclient.sfx.ms>
Expand Down
2 changes: 1 addition & 1 deletion README_uk-ua.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ scoop install sophiapp
* <https://raw.githubusercontent.com>
* <https://github.com>
* <https://download.visualstudio.microsoft.com>
* <https://dotnetcli.blob.core.windows.net>
* <https://builds.dotnet.microsoft.com>
* <https://www.google.com>
* <https://g.live.com>
* <https://oneclient.sfx.ms>
Expand Down
4 changes: 2 additions & 2 deletions src/SophiApp/Customisations/CustomisationOs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ public static void _352(bool _)
public static void _354(bool _)
{
var temp = Environment.GetEnvironmentVariable(TEMP);
var cloudNet6 = WebHelper.GetJsonResponse<MsNetDto>(@"https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/6.0/releases.json");
var cloudNet6 = WebHelper.GetJsonResponse<MsNetDto>(@"https://builds.dotnet.microsoft.com/dotnet/release-metadata/6.0/releases.json");
var latestRelease = cloudNet6.Releases.Where(release => release.ReleaseVersion == $"{cloudNet6.LatestRelease}").First();
var latestRuntime = latestRelease.WindowsDesktop.Files.Where(file => file.Name == "windowsdesktop-runtime-win-x86.exe").First();
var installer = $@"{temp}\{latestRuntime.Url.Substring(latestRuntime.Url.LastIndexOf('/') + 1)}";
Expand All @@ -984,7 +984,7 @@ public static void _355(bool _)
public static void _357(bool _)
{
var temp = Environment.GetEnvironmentVariable(TEMP);
var cloudNet6 = WebHelper.GetJsonResponse<MsNetDto>(@"https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/6.0/releases.json");
var cloudNet6 = WebHelper.GetJsonResponse<MsNetDto>(@"https://builds.dotnet.microsoft.com/dotnet/release-metadata/6.0/releases.json");
var latestRelease = cloudNet6.Releases.Where(release => release.ReleaseVersion == $"{cloudNet6.LatestRelease}").First();
var latestRuntime = latestRelease.WindowsDesktop.Files.Where(file => file.Name == "windowsdesktop-runtime-win-x64.exe").First();
var installer = $@"{temp}\{latestRuntime.Url.Substring(latestRuntime.Url.LastIndexOf('/') + 1)}";
Expand Down
4 changes: 2 additions & 2 deletions src/SophiApp/Customisations/CustomisationStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ public static bool _354()
{
if (HttpHelper.IsOnline)
{
var cloudNetVersion = WebHelper.GetJsonResponse<MsNetDto>(@"https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/6.0/releases.json");
var cloudNetVersion = WebHelper.GetJsonResponse<MsNetDto>(@"https://builds.dotnet.microsoft.com/dotnet/release-metadata/6.0/releases.json");
return DotNetHelper.IsInstalled(cloudNetVersion.LatestRelease, DotNetRid.Win_x86)
? throw new DotNetInstalledException(cloudNetVersion.LatestRelease)
: false;
Expand All @@ -472,7 +472,7 @@ public static bool _357()
{
if (HttpHelper.IsOnline)
{
var cloudNetVersion = WebHelper.GetJsonResponse<MsNetDto>(@"https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/6.0/releases.json");
var cloudNetVersion = WebHelper.GetJsonResponse<MsNetDto>(@"https://builds.dotnet.microsoft.com/dotnet/release-metadata/6.0/releases.json");
return DotNetHelper.IsInstalled(cloudNetVersion.LatestRelease, DotNetRid.Win_x64)
? throw new DotNetInstalledException(cloudNetVersion.LatestRelease)
: false;
Expand Down

0 comments on commit b96917e

Please sign in to comment.