Skip to content

Commit

Permalink
Modified automatic updates to point to my releases instead of Nexus r…
Browse files Browse the repository at this point in the history
…eleases.
  • Loading branch information
squid-box committed Jun 6, 2018
1 parent 86c4b6e commit 2dc2287
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion NexusClient/ModRepositories/Nexus/NexusLinks.cs
Expand Up @@ -48,7 +48,7 @@ public static string LatestVersion
{
get
{
return @"https://api.github.com/repos/Nexus-Mods/Nexus-Mod-Manager/releases/latest";
return @"https://api.github.com/repos/squid-box/Nexus-Mod-Manager/releases/latest";
}
}

Expand Down
21 changes: 9 additions & 12 deletions NexusClient/Updating/ProgrammeUpdater.cs
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Net;
Expand Down Expand Up @@ -180,13 +179,13 @@ public bool GetLatestVersion()
{
if (!ParseReleaseInformation(data))
{
Console.Error.WriteLine("failed to parse github release information");
Trace.TraceError("failed to parse github release information");
return false;
}
}
else
{
Console.Error.WriteLine("failed to get github release information");
Trace.TraceError("failed to get github release information");
return false;
}
return true;
Expand All @@ -205,8 +204,8 @@ private bool GetReleaseInformation(out string data)
}
catch (Exception e)
{
Console.Error.WriteLine("GithubReleaseParser::GetReleaseInformation:: error - {0}", e.Message);
Console.Error.WriteLine(e.ToString());
Trace.TraceError("GithubReleaseParser::GetReleaseInformation:: error - {0}", e.Message);
Trace.TraceError(e.ToString());
data = "";
ret = false;
}
Expand Down Expand Up @@ -615,18 +614,16 @@ private Version GetNewProgrammeVersion(out string p_strDownloadUri)

if (release.GetLatestVersion())
{
verNew = new Version(release.LatestVersion);
verNew = new Version(release.LatestVersion.Replace("f", ""));
p_strDownloadUri = release.LatestVersionUrl;
Console.Error.WriteLine("latest version = {0}", verNew.ToString());
Console.Error.WriteLine("latest version url = {0}", p_strDownloadUri);
Trace.TraceInformation("latest version = {0}", verNew.ToString());
Trace.TraceInformation("latest version url = {0}", p_strDownloadUri);
}
}
catch (Exception e)
{

Console.Error.WriteLine("ProgrammeUpdater::GetNewProgrammeVersion:: error - {0}", e.Message);
Console.Error.WriteLine(e.ToString());

Trace.TraceError("ProgrammeUpdater::GetNewProgrammeVersion:: error - {0}", e.Message);
Trace.TraceError(e.ToString());
}

return verNew;
Expand Down
1 change: 1 addition & 0 deletions NexusClient/data/releasenotes.rtf
Expand Up @@ -7,6 +7,7 @@
\pard
{\pntext\f0 1.\tab}{\*\pn\pnlvlbody\pnf0\pnindent0\pnstart1\pndec{\pntxta.}}
\nowidctlpar\fi-360\li720\qj\cf1\lang2057 New Feature:\cf2\b0 Added Fallout 4 VR support.\par
{\pntext\f0 2.\tab}\cf1\b New Feature:\cf2\b0 Added automatic updates (from \b neoh4xor\b0 on GitHub).\par

\pard\widctlpar\qj\cf0\b\lang1040\par
\par
Expand Down

0 comments on commit 2dc2287

Please sign in to comment.