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

Commit 772a085

Browse files
committed
fix release note urls, go to archives page from download button if no exe download available
1 parent 610e961 commit 772a085

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

UnityLauncher/Form1.cs

+1
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,7 @@ void DownloadInBrowser(string url)
570570
else // not found
571571
{
572572
SetStatus("Error> Cannot find installer executable ... opening website instead");
573+
url = "https://unity3d.com/get-unity/download/archive";
573574
Process.Start(url + "#installer-exe-not-found");
574575
}
575576
}

UnityLauncher/Tools.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,10 @@ public static string GetUnityReleaseURL(string version)
188188
if (version.Contains("5.6")) padding = "";
189189
if (version.Contains("2017.1")) whatsnew = "whatsnew";
190190
if (version.Contains("2017.4")) padding = "";
191-
if (version.Contains("2018")) padding = "";
191+
if (version.Contains("2018.2")) whatsnew = "whatsnew";
192+
if (version.Contains("2018.3")) padding = "";
192193
if (version.Contains("2019")) padding = "";
193-
url = "https://unity3d.com/unity/"+ whatsnew +"/" + padding + version;
194+
url = "https://unity3d.com/unity/" + whatsnew + "/" + padding + version;
194195
}
195196
else
196197
if (version.Contains("p")) // patch version

0 commit comments

Comments
 (0)