diff --git a/README.md b/README.md index 0bbdc55..da17ae4 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,6 @@ * ✅ Update client * ✅ Run the client -You must configure MainWindow and SplashScreen +You must configure the "launcher_config.json" url in MainWindow.cs and SplashScreen.cs + +In launcher_config.json you need to make necessary settings to use the launcher. (Read the explanation of how to use each configuration) diff --git a/launcher_config.json b/launcher_config.json index 105badb..0d2c68f 100644 --- a/launcher_config.json +++ b/launcher_config.json @@ -6,12 +6,12 @@ • clientFolder The name of the main client folder, represented as "Tibia" NOTE: Set it to "false" or only "" to not use the client folder, so everything will be added to the main folder • newClientUrl The URL where the new client version can be downloaded from -• executable The path to the client's executable file, represented as "bin/molten.exe" +• executable The path to the client's executable file, represented as "bin/client.exe" */ { - "clientVersion": "12.91.12329", + "clientVersion": "13.20.13560", "launcherVersion": "1.0", - "replaceFolders": false, + "replaceFolders": true, "replaceFolderName": [ { "name": "assets" @@ -24,6 +24,6 @@ NOTE: Set it to "false" or only "" to not use the client folder, so everything w } ], "clientFolder": "Tibia", - "newClientUrl" : "https://github.com/dudantas/CanaryLauncherUpdate/releases/download/download-files/client-to-update.zip", + "newClientUrl" : "https://github.com/dudantas/tibia-client/archive/refs/tags/13.20.13560.zip", "clientExecutable": "client.exe" } diff --git a/src/MainWindow.xaml.cs b/src/MainWindow.xaml.cs index e3ad3ca..542c5aa 100644 --- a/src/MainWindow.xaml.cs +++ b/src/MainWindow.xaml.cs @@ -20,7 +20,7 @@ namespace CanaryLauncherUpdate { public partial class MainWindow : Window { - static string launcerConfigUrl = "https://raw.githubusercontent.com/dudantas/CanaryLauncherUpdate/improve-change-images-to-static/launcher_config.json"; + static string launcerConfigUrl = "https://raw.githubusercontent.com/opentibiabr/canary-launcher/main/launcher_config.json"; // Load informations of launcher_config.json file static ClientConfig clientConfig = ClientConfig.loadFromFile(launcerConfigUrl); @@ -43,7 +43,7 @@ private string GetLauncherPath(bool onlyBaseDirectory = false) } else { launcherPath = AppDomain.CurrentDomain.BaseDirectory.ToString() + "/" + clientConfig.clientFolder; } - + return launcherPath; } diff --git a/src/SplashScreen.xaml.cs b/src/SplashScreen.xaml.cs index 8c74fc9..76f7b95 100644 --- a/src/SplashScreen.xaml.cs +++ b/src/SplashScreen.xaml.cs @@ -18,10 +18,10 @@ namespace CanaryLauncherUpdate { public partial class SplashScreen : Window { - static string launcerConfigUrl = "https://raw.githubusercontent.com/dudantas/CanaryLauncherUpdate/improve-change-images-to-static/launcher_config.json"; + static string launcerConfigUrl = "https://raw.githubusercontent.com/opentibiabr/canary-launcher/main/launcher_config.json"; // Load informations of launcher_config.json file static ClientConfig clientConfig = ClientConfig.loadFromFile(launcerConfigUrl); - + static string clientExecutableName = clientConfig.clientExecutable; static string urlClient = clientConfig.newClientUrl; @@ -36,7 +36,7 @@ private string GetLauncherPath(bool onlyBaseDirectory = false) } else { launcherPath = AppDomain.CurrentDomain.BaseDirectory.ToString() + "/" + clientConfig.clientFolder; } - + return launcherPath; }