Skip to content
This repository has been archived by the owner on May 19, 2021. It is now read-only.

Commit

Permalink
fix release note urls, go to archives page from download button if no…
Browse files Browse the repository at this point in the history
… exe download available
  • Loading branch information
unitycoder committed Apr 16, 2019
1 parent 610e961 commit 772a085
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions UnityLauncher/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@ void DownloadInBrowser(string url)
else // not found
{
SetStatus("Error> Cannot find installer executable ... opening website instead");
url = "https://unity3d.com/get-unity/download/archive";
Process.Start(url + "#installer-exe-not-found");
}
}
Expand Down
5 changes: 3 additions & 2 deletions UnityLauncher/Tools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,10 @@ public static string GetUnityReleaseURL(string version)
if (version.Contains("5.6")) padding = "";
if (version.Contains("2017.1")) whatsnew = "whatsnew";
if (version.Contains("2017.4")) padding = "";
if (version.Contains("2018")) padding = "";
if (version.Contains("2018.2")) whatsnew = "whatsnew";
if (version.Contains("2018.3")) padding = "";
if (version.Contains("2019")) padding = "";
url = "https://unity3d.com/unity/"+ whatsnew +"/" + padding + version;
url = "https://unity3d.com/unity/" + whatsnew + "/" + padding + version;
}
else
if (version.Contains("p")) // patch version
Expand Down

0 comments on commit 772a085

Please sign in to comment.