From a42d4f2c3fe747d26d76a8e6d3d41ad7fcf6e781 Mon Sep 17 00:00:00 2001
From: xgui4 <134389196+xgui4@users.noreply.github.com>
Date: Mon, 25 May 2026 15:09:32 -0400
Subject: [PATCH] cleaned the code witj ruff, remove instance type , and some
minors typo fixed on docs and other minors changes
---
.github/workflows/nightly.yml | 2 +-
data/defaults_instances/aether.lce_inst | 1 -
data/defaults_instances/mclce.lce_inst | 1 -
data/defaults_instances/neoLegacy.lce_inst | 3 +-
data/defaults_instances/revelation.lce_inst | 1 -
data/guide.jsonc | 17 +-
lisezmoi.md | 8 +-
readme.md | 4 +-
schemas/x-application-lce_inst_config.json | 14 +-
src/form.ui | 83 +----
src/instance.ui | 332 ++++++++----------
.../managers/display_manager.py | 14 +-
src/lce_qt_launcher/managers/downloader.py | 8 +-
.../managers/instance_manager.py | 77 +---
src/lce_qt_launcher/managers/steam_manager.py | 5 +-
src/lce_qt_launcher/utils/holiday.py | 2 -
.../views/content_installer_dialog.py | 1 -
src/lce_qt_launcher/views/launcher.py | 78 ++--
src/lce_qt_launcher/views/setting_dialog.py | 6 +-
19 files changed, 237 insertions(+), 420 deletions(-)
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index 939c617..5c6df37 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -119,7 +119,7 @@ jobs:
Note that the Nightly build is not available as a port right now.\n
\n
Automatic Nighty (daily) binary build powered by GtiHub Actions. \n
- The nigthly build are experimental nuitka compilation from the nighly branch \n
+ The nigthly build are experimental nuitka compilation from the dev branch \n
Now includes installers (NOTE : currently, Automatic installer workflow is broken)."
files: |
./artifacts/****.exe
diff --git a/data/defaults_instances/aether.lce_inst b/data/defaults_instances/aether.lce_inst
index c629b4b..03a69ee 100644
--- a/data/defaults_instances/aether.lce_inst
+++ b/data/defaults_instances/aether.lce_inst
@@ -8,6 +8,5 @@
"repo_url": "https://github.com/Frcoxd/aether-papu",
"news_feed": "https://github.com/LCE-Hub/LCE-Workshop/tree/main/.00versions/test",
"instance_source": "InstanceSource.GITHUB_RELEASE",
- "instance_type": "InstanceType.CLIENT_VANILLA",
"version": "Aether"
}
\ No newline at end of file
diff --git a/data/defaults_instances/mclce.lce_inst b/data/defaults_instances/mclce.lce_inst
index 4a29bf1..cfbfeda 100644
--- a/data/defaults_instances/mclce.lce_inst
+++ b/data/defaults_instances/mclce.lce_inst
@@ -8,6 +8,5 @@
"image" : ":/assets/mclce-ico.png",
"news_feed" : "https://git.minecraftlegacy.com/backups/MinecraftConsoles/commits/branch/main",
"instance_source": "InstanceSource.REMOTE_GIT_SOURCE",
- "instance_type": "InstanceType.CLIENT_VANILLA",
"version": "main"
}
\ No newline at end of file
diff --git a/data/defaults_instances/neoLegacy.lce_inst b/data/defaults_instances/neoLegacy.lce_inst
index 4568290..03e7407 100644
--- a/data/defaults_instances/neoLegacy.lce_inst
+++ b/data/defaults_instances/neoLegacy.lce_inst
@@ -1,7 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/xgui4/LCE-Qt-Launcher/refs/heads/master/schemas/x-application-lce_inst_config.json",
"name": "neoStudiosLCE neoLegacy",
- "instance_type": "InstanceType.CLIENT_VANILLA",
"instance_source": "InstanceSource.GITHUB_RELEASE",
"image": ":/assets/neoLegacy.png",
"archive_file": "neoLegacyWindows64.zip",
@@ -9,5 +8,5 @@
"news_feed": "https://github.com/neoStudiosLCE/neoLegacy/commits/main/",
"installation_path": ".neoLegacy",
"repo_url": "https://github.com/neoStudiosLCE/neoLegacy",
- "version": "v1.0.4b"
+ "version": "v1.0.5b"
}
diff --git a/data/defaults_instances/revelation.lce_inst b/data/defaults_instances/revelation.lce_inst
index b688605..cd35cf4 100644
--- a/data/defaults_instances/revelation.lce_inst
+++ b/data/defaults_instances/revelation.lce_inst
@@ -8,6 +8,5 @@
"image" : ":/assets/Revelation.jpg",
"news_feed" : "https://git.revela.dev/itsRevela/LCE-Revelations/commits/branch/main",
"instance_source": "InstanceSource.FORGEJO_RELEASE",
- "instance_type": "InstanceType.CLIENT_VANILLA",
"version": "Nightly"
}
\ No newline at end of file
diff --git a/data/guide.jsonc b/data/guide.jsonc
index 56a5112..b6522c5 100644
--- a/data/guide.jsonc
+++ b/data/guide.jsonc
@@ -2,7 +2,7 @@
"$schema" : "../schemas/x-application-lce_inst_config.json",
"name" : "default", // Name of the instance
"installation_path": ".lce", // Installation Path of the game files
- "username" : "Steve", // Your Username
+ "username" : "Steve", // Your Username, DEPRECIATED : will be soon removed and replaced by the username config settnig
"exe_name" : "Minecraft.Client.exe", // The executable name
"archive_name" : "LCEWindows64.zip", // The archive to download
"repo_url" : "https://github.com/MCLCE/MinecraftConsoles", // The ur/repo of the project
@@ -10,15 +10,10 @@
"news_feed" : "https://github.com/MCLCE/MinecraftConsoles/commits/main/", // The webiste of the news feed to display in the news tabs
// InstanceSource.GITHUB_RELEASE : GitHub,
// InstanceSource.FORGEJO_RELEASE : Forgejo (like Codeberge),
- // InstanceSource.REMOTE_GIT_SOURCE = Remote Git (not implemented yet)
- // InstanceSource.LOCAL_INSTALLATION = Local Installation (not implemented yet)
- // InstanceSource.LOCAL_SOURCE_CODE = Local Source Code (not implemented yet)
+ // InstanceSource.REMOTE_GIT_SOURCE : Remote Git (not implemented yet)
+ // InstanceSource.LOCAL_INSTALLATION : Local Installation (not implemented yet)
+ // InstanceSource.LOCAL_SOURCE_CODE : Local Source Code (not implemented yet)
"instance_source" : "InstanceSource.GITHUB_RELEASE",
- // InstanceType.CLIENT_VANILLA = #TODO To implement and write documentation
- // InstanceType.CLENT_MODDED = #TODO To implement and write documentation
- // InstanceType.SERVER_VANILLA = #TODO To implement and write documentation
- // InstanceType.SERVER_MODDED = #TODO To implement and write documentation
- "instance_type": "InstanceType.CLIENT_VANILLA", // Type of the instance (not implemented/functionnal yet)
- "version" : "nightly", // version/tag of the release of rhe instance to download
- "steam_link" : "steam://rungameid/{number}"
+ "version" : "nightly", // version/tag of the release of rhe instance to download
+ "steam_link" : "steam://rungameid/{number}"
}
diff --git a/lisezmoi.md b/lisezmoi.md
index 260c952..caf3cef 100644
--- a/lisezmoi.md
+++ b/lisezmoi.md
@@ -3,7 +3,7 @@
[Version anglaise](readme.md)

-
+
> [!WARNING]
> Ce lanceur est en cours de développement et ses fonctionnalités peuvent être modifiées ou supprimées à tout moment.
@@ -13,7 +13,7 @@
Il s'agit d'un lanceur LCE personnalisé pour Minecraft, écrit avec PySide6 (Qt6 pour Python) et conçu pour GNU/Linux.
-## Pourquoi le lanceur LCE Qt ?
+## Pourquoi LCE Qt Launcher ?
- Développé en Python avec Qt 6 : léger et compatible avec le thème Plasma 6/Qt 6 de GNU/Linux
- Personnalisation avec les thèmes
@@ -67,14 +67,14 @@ A Venir bientôt (décalé du a des problèmes techniques)
### FreeBSD Port (Expérimental)
-Voir [mon overlay tion de ports FreeBSD](https://github.com/xgui4/freebsd-ports) pour installer le port games/lce-qt-laucher (py311-lce-qt-launcher).
+Voir [mon overlay de ports FreeBSD](https://github.com/xgui4/freebsd-ports) pour installer le port games/lce-qt-laucher (py311-lce-qt-launcher).
### Version Nightly/Quotidienne (Nighly Build)
> [!NOTE]
> Cette branche n'est pas stable et des modifications y sont apportées presque quotidiennement. Elle peut donc parfois dysfonctionner. De plus, macOS n'est pas disponible dans la version nighly en raison des restrictions d'Apple et du fait que je ne possède pas de Mac.
-Sur cette page [GitHub Release](https://github.com/xgui4/LCE-Qt-Launcher/releases/tag/nightly), vous trouverez les versions Nightly, générées automatiquement via GitHub Actions lors de modifications apportées à la branche [`nightly`](https://github.com/xgui4/LCE-Qt-Launcher/tree/nightly). Cette méthode est sujet a changer prochainement
+Sur cette page [GitHub Release](https://github.com/xgui4/LCE-Qt-Launcher/releases/tag/nightly), vous trouverez les versions Nightly, générées automatiquement via GitHub Actions lors de modifications apportées à la branche [`dev`](https://github.com/xgui4/LCE-Qt-Launcher/tree/dev).
### Via Git
diff --git a/readme.md b/readme.md
index 53d3536..1e4afea 100644
--- a/readme.md
+++ b/readme.md
@@ -3,7 +3,7 @@
[French Version](lisezmoi.md)

-
+
> [!WARNING]
> This launcher is work in progress and its feature could be changes or remove at any time.
@@ -73,7 +73,7 @@ See [my FreeBSD Port Overlay](https://github.com/xgui4/freebsd-ports) to install
> [!NOTE]
> This branch is not stable and changes are made almost daily so this branch can sometimes break. Also, MacOS is not avaiable in the Nigthly Build due to Apple restriction and that I do now own a mac.
-In this [GitHub Release](https://github.com/xgui4/LCE-Qt-Launcher/releases/tag/nightly) page you will found Nighly Build which are made automatically via GitHub Action when change are made in the [`dev` branch](https://github.com/xgui4/LCE-Qt-Launcher/tree/dev) (This is subject to change very soon)
+In this [GitHub Release](https://github.com/xgui4/LCE-Qt-Launcher/releases/tag/nightly) page you will found Nighly Build which are made automatically via GitHub Action when change are made in the [`dev` branch](https://github.com/xgui4/LCE-Qt-Launcher/tree/dev)
### Via Git
diff --git a/schemas/x-application-lce_inst_config.json b/schemas/x-application-lce_inst_config.json
index b2e321f..12103b0 100644
--- a/schemas/x-application-lce_inst_config.json
+++ b/schemas/x-application-lce_inst_config.json
@@ -22,7 +22,7 @@
]
},
"username" : {
- "$comment": "DEPRECIATED : will be soon removed and replaced by the username config settng",
+ "$comment": "DEPRECIATED : will be soon removed and replaced by the username config settng",
"description": "The username of the player for the instance",
"type" : "string",
"default" : "Steve"
@@ -74,23 +74,11 @@
"type" : "string",
"default" : "InstanceSource.GITHUB_RELEASE"
},
- "instance_type" : {
- "description": "Type of the instance (not implemented/functionnal yet)",
- "examples": [
- "InstanceType.CLIENT_VANILLA",
- "InstanceType.CLENT_MODDED",
- "InstanceType.SERVER_VANILLA",
- "InstanceType.SERVER_MODDED"
- ],
- "type" : "string",
- "default" : "InstanceType.CLIENT_VANILLA"
- },
"version" : {
"description": "version/tag of the release",
"type" : "string",
"default" : "nightly",
"examples": [
- "nightly-dedicated-server",
"Nightly",
"v1.0.0b"
]
diff --git a/src/form.ui b/src/form.ui
index 6920519..89eeb31 100644
--- a/src/form.ui
+++ b/src/form.ui
@@ -357,6 +357,13 @@
+ -
+
+
+ true
+
+
+
-
@@ -401,63 +408,7 @@
- -
-
-
- false
-
-
-
- true
-
-
-
- Server IP (Coming Soon)
-
-
-
- -
-
-
- false
-
-
-
- 0
- 0
-
-
-
-
- -
-
-
- false
-
-
-
- true
-
-
-
- Server Name (Coming Soon)
-
-
-
- -
-
-
- false
-
-
-
- 0
- 0
-
-
-
-
- -
+
-
Save Instances Config
@@ -467,7 +418,7 @@
- -
+
-
@@ -483,13 +434,13 @@
- -
+
-
- false
+ true
- Open Instances Editor
+ Open Instances Editor (Experimental)
false
@@ -502,13 +453,6 @@
- -
-
-
- true
-
-
-
@@ -677,7 +621,7 @@
0
0
1205
- 22
+ 35