mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Beta versions check for updates with their version & commit hash
* This will allow official and beta releases to have parallel update tracks as planned
This commit is contained in:
@@ -886,7 +886,7 @@ namespace renderdocui.Windows
|
||||
return;
|
||||
}
|
||||
|
||||
if(!OfficialVersion)
|
||||
if(!OfficialVersion && !BetaVersion)
|
||||
return;
|
||||
|
||||
if (m_Core.Config.CheckUpdate_UpdateAvailable)
|
||||
@@ -903,10 +903,15 @@ namespace renderdocui.Windows
|
||||
|
||||
m_Core.Config.CheckUpdate_LastUpdate = today;
|
||||
|
||||
string versionCheck = VersionString;
|
||||
|
||||
if (BetaVersion)
|
||||
versionCheck += String.Format("-{0}-beta", GitCommitHash.Substring(0, 8));
|
||||
|
||||
var updateThread = Helpers.NewThread(new ThreadStart(() =>
|
||||
{
|
||||
// spawn thread to check update
|
||||
WebRequest g = HttpWebRequest.Create(String.Format("http://renderdoc.org/checkupdate/{0}", VersionString));
|
||||
WebRequest g = HttpWebRequest.Create(String.Format("http://renderdoc.org/checkupdate/{0}", versionCheck));
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user