Skip to content

Commit

Permalink
Bump version to 2.2.0 with change to using update source behind cloud…
Browse files Browse the repository at this point in the history
…front
  • Loading branch information
mcoot committed Dec 4, 2023
1 parent 2a32ebc commit 8de3c5c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ public string CustomArguments
public InjectConfig Injection { get; set; } = new InjectConfig();
public LoginServerConfig LoginServer { get; set; } = new LoginServerConfig();

// Legacy, no longer used but left in for config compatibility
private string updateUrl = "https://raw.githubusercontent.com/mcoot/tamodsupdate/release";
public string UpdateUrl
{
Expand Down
4 changes: 2 additions & 2 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public LocalPackage SelectedPackage

private Config LauncherConfig { get => DataModel.LauncherConfig; }

public static SemanticVersion LauncherVersion { get; } = SemanticVersion.Parse("2.1.3");
public static SemanticVersion LauncherVersion { get; } = SemanticVersion.Parse("2.2.0");

System.Timers.Timer AutoInjectTimer { get; set; }

Expand Down Expand Up @@ -125,7 +125,7 @@ public MainWindow() {
AutoInjectTimer.Elapsed += OnAutoInjectTimerElapsed;

string configPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal) + "/My Games/Tribes Ascend/TribesGame/config/";
TAModsUpdater = new Updater(LauncherConfig.UpdateUrl, configPath, LauncherConfig.Debug);
TAModsUpdater = new Updater(configPath, LauncherConfig.Debug);

// Add event handlers
TAModsUpdater.OnUpdateComplete += OnUpdateFinished;
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.1.3.0")]
[assembly: AssemblyFileVersion("2.1.3.0")]
[assembly: AssemblyVersion("2.2.0.0")]
[assembly: AssemblyFileVersion("2.2.0.0")]
4 changes: 2 additions & 2 deletions Updater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static RemoteObjectManager Instance { get

public event EventHandler<DownloadProgressChangedEventArgs> DownloadProgressChanged;

private static readonly string baseUrl = "https://tamods-update.s3-ap-southeast-2.amazonaws.com";
private static readonly string baseUrl = "https://client.update.tamods.org";

private readonly WebClient webClient = new WebClient();

Expand Down Expand Up @@ -63,7 +63,7 @@ class Updater
public string ConfigBasePath { get; set; }


public Updater(string remoteBaseUrl, string configBasePath, Config.DebugConfig debugConfig)
public Updater(string configBasePath, Config.DebugConfig debugConfig)
{
ConfigBasePath = configBasePath;
updateSemaphore = new SemaphoreSlim(1, 1);
Expand Down

0 comments on commit 8de3c5c

Please sign in to comment.