Skip to content

Commit bc23fb4

Browse files
Update to v0.1.0-rc2 (#53)
* Add LogHandler service for improved log processing Introduced a new LogHandler class to manage and process log data more effectively. Integrated LogHandler into OverviewPageViewModel and ServiceLocator for better error handling and logging capabilities. * Add detailed installation instructions to README.md This update includes prerequisites, step-by-step installation commands, troubleshooting tips, updating instructions, and uninstallation steps for the GamerVII Launcher. These additions aim to provide clear, comprehensive guidance for users to correctly install, update, and uninstall the launcher. * Add README.md to Gml.Client project in solution This commit updates the solution file to include the README.md for the Gml.Client project. The addition helps in documenting the project directly within the solution, providing better context and guidance for developers. * Update submodule link Gml.Client * Prevent further processing of error data Added a return statement at the beginning of the HandleErrorData method to immediately exit the function. This ensures that no additional code is executed within this method when it is called. --------- Co-authored-by: GamerVII-NET <[email protected]>
1 parent f999ab8 commit bc23fb4

19 files changed

+307
-78
lines changed

Gml.Launcher.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "common", "common", "{09A802
1313
load-repositories.bat = load-repositories.bat
1414
load-repositories.sh = load-repositories.sh
1515
.github\workflows\dotnet.yml = .github\workflows\dotnet.yml
16+
src\Gml.Client\README.md = src\Gml.Client\README.md
1617
EndProjectSection
1718
EndProject
1819
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Gml.Launcher", "src\Gml.Launcher\Gml.Launcher.csproj", "{F2771E71-C782-4713-862F-217694DDDFF5}"

README.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,69 @@
44
GamerVII Launcher
55
=======
66
The Minecraft Launcher is a user-friendly application designed to streamline the process of launching Minecraft and managing game settings. It provides an intuitive interface and essential features to enhance the Minecraft gaming experience.
7+
8+
## Installation
9+
10+
### Prerequisites
11+
12+
Before installing the GamerVII Launcher, ensure you have the following prerequisites:
13+
14+
- **.NET 8.0 SDK:** You need to have .NET 8.0 SDK installed on your system. You can download it
15+
from [Microsoft's official website](https://dotnet.microsoft.com/download/dotnet/8.0) or use a package manager
16+
suitable for your operating system.
17+
18+
- **Git:** Ensure Git is installed on your system. You can download it from
19+
the [Git website](https://git-scm.com/downloads) or use a package manager.
20+
21+
### Steps to Install GamerVII Launcher
22+
23+
1. **Clone the Repository:**
24+
Open a terminal and clone the repository using Git with the `--recursive` option:
25+
```bash
26+
git clone --recursive https://github.com/GamerVII-NET/minecraft-launcher.git
27+
cd minecraft-launcher
28+
```
29+
30+
2. **Build the Project:**
31+
Restore the dependencies and build the project using the .NET CLI:
32+
```bash
33+
dotnet restore
34+
dotnet build
35+
```
36+
37+
3. **Run the Launcher:**
38+
Once the project is built, you can run the launcher using the following command:
39+
```bash
40+
dotnet run --project path/to/your/project
41+
```
42+
43+
### Troubleshooting
44+
45+
If you encounter any issues during the installation, ensure the following:
46+
47+
- Ensure the .NET SDK is correctly installed and the `DOTNET_HOME` environment variable is set.
48+
- Ensure Git is correctly installed and available in the terminal.
49+
- Make sure you have the necessary permissions to run the build and execute the application.
50+
51+
For additional help, check the project's issue tracker or community forums.
52+
53+
### Updating
54+
55+
To update the GamerVII Launcher to the latest version, navigate to the project directory and pull the latest changes
56+
from the repository:
57+
58+
```bash
59+
git pull origin main
60+
git submodule update --recursive --remote
61+
dotnet build
62+
```
63+
64+
Then, run the launcher again using the command mentioned earlier.
65+
66+
### Uninstallation
67+
68+
To uninstall the GamerVII Launcher, simply delete the project directory:
69+
70+
```bash
71+
rm -rf minecraft-launcher
72+
```

src/Gml.Client

src/Gml.Launcher/Assets/Resources/ResourceKeysDictionary.Template.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public static class ResourceKeysDictionary
1919
public const string ProfileNotConfigured = "ProfileNotConfigured";
2020
public const string UpdatingDescription = "UpdatingDescription";
2121
public const string InvalidAuthData = "InvalidAuthData";
22+
public const string InvalidSession = "InvalidSession";
2223
public const string Reconnecting = "Reconnecting";
2324
public const string LostConnection = "LostConnection";
2425
public const string CheckUpdates = "CheckUpdates";

src/Gml.Launcher/Assets/Resources/ResourceKeysDictionary.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public static class ResourceKeysDictionary
1919
public const string ProfileNotConfigured = "ProfileNotConfigured";
2020
public const string UpdatingDescription = "UpdatingDescription";
2121
public const string InvalidAuthData = "InvalidAuthData";
22+
public const string InvalidSession = "InvalidSession";
2223
public const string Reconnecting = "Reconnecting";
2324
public const string LostConnection = "LostConnection";
2425
public const string CheckUpdates = "CheckUpdates";

src/Gml.Launcher/Assets/Resources/Resources.Designer.cs

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Gml.Launcher/Assets/Resources/Resources.en.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,7 @@
141141
<data name="GameProfileError" xml:space="preserve">
142142
<value>Error initializing the game profile.</value>
143143
</data>
144+
<data name="InvalidSession" xml:space="preserve">
145+
<value>Your game session in the launcher has expired, please log in again.</value>
146+
</data>
144147
</root>

src/Gml.Launcher/Assets/Resources/Resources.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,7 @@
149149
<data name="GameProfileError" xml:space="preserve">
150150
<value>Error initializing the game profile.</value>
151151
</data>
152+
<data name="InvalidSession" xml:space="preserve">
153+
<value>Your game session in the launcher has expired, please log in again.</value>
154+
</data>
152155
</root>

src/Gml.Launcher/Assets/Resources/Resources.ru.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,7 @@
141141
<data name="GameProfileError" xml:space="preserve">
142142
<value>Ошибка инициализации игрового профиля.</value>
143143
</data>
144+
<data name="InvalidSession" xml:space="preserve">
145+
<value>Ваша игровая сессия в лаунчере истекла, авторизуйтесь заново</value>
146+
</data>
144147
</root>

src/Gml.Launcher/Core/Converters/AsyncSkinRenderLoader.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using Avalonia.Media.Imaging;
1010
using Gml.Client;
1111
using Gml.Launcher.Core.Services;
12+
using Sentry;
1213

1314
namespace Gml.Launcher.Core.Converters;
1415

@@ -63,9 +64,10 @@ private static async void OnSourceChanged(Image sender, AvaloniaPropertyChangedE
6364

6465
if (!cts.Token.IsCancellationRequested) sender.Source = bitmap;
6566
}
66-
catch (Exception e)
67+
catch (Exception exception)
6768
{
68-
Console.WriteLine(e);
69+
Console.WriteLine(exception);
70+
SentrySdk.CaptureException(exception);
6971
}
7072
finally
7173
{

0 commit comments

Comments
 (0)