From a566717f9c8e34a3f3f1993f089557e2c5efc18b Mon Sep 17 00:00:00 2001 From: Wei Hong Date: Mon, 3 Aug 2026 00:40:16 +0800 Subject: [PATCH] Update some text. --- __init__.py | 14 +++++++------- constant.py | 7 ++++++- core_lib/runtime/mojang.py | 4 ++-- main.py | 4 ++-- manager/game.py | 6 +++--- pages/test.py | 4 ++-- pyproject.toml | 3 ++- window.py | 3 ++- 8 files changed, 26 insertions(+), 19 deletions(-) diff --git a/__init__.py b/__init__.py index cfdbb32..649e269 100644 --- a/__init__.py +++ b/__init__.py @@ -2,17 +2,17 @@ __version__ = "0.0.1" __author__ = "wei" __email__ = "weidnite1222@gmail.com" __description__ = """ -A *Minecraft* launcher that I'm still thinking about its name. +A *Minecraft* launcher that I still haven't named. -I made this due to the official Minecraft Launcher is too huge and laggy. I need to wait it over 1 min to launch -game, and I think launcher must be simple and lightweight to make user to feel is easy to use. +I made this because the official Minecraft Launcher is too large and slow. I have to wait over a minute to launch +the game, and I believe a launcher should be simple, lightweight, and easy to use. -This launcher should adheres to the following rules: +This launcher should adhere to the following rules: 1: Be simple 2: Be complex at some point (Yeah this rule looks opposite to the first rule) 3: Be cool and fun -4: No AI slop (Nobody wants to read spaghetti code that made by AI) -5: Freedom just like the bird (This project use MIT license) +4: No AI slop (Nobody wants to read spaghetti code generated by AI) +5: Freedom like a bird (This project uses the MIT license) """ -__website__ = "https://repo.weispace.net/wei/Launcher" \ No newline at end of file +__website__ = "https://repo.weispace.net/wei/Launcher" diff --git a/constant.py b/constant.py index ec27884..3bebac1 100644 --- a/constant.py +++ b/constant.py @@ -7,4 +7,9 @@ LAUNCHER_USER_AGENT = f"{LAUNCHER_NAME}/{LAUNCHER_VERSION} (Powered by request m ACCESS_TOKEN_KEYWORD = "accessToken" REFRESH_TOKEN_KEYWORD = "refreshToken" -SYSTEM_KEYRING_KEYWORD = "SYSTEM_CREDENTIALS" \ No newline at end of file +SYSTEM_KEYRING_KEYWORD = "SYSTEM_CREDENTIALS" + +LAUNCHER_DESCRIPTION = """ +An unofficial Minecraft launcher written in Python. It aims to maintain maximum compatibility with the official Minecraft +Launcher while being more lightweight and easier to use. +""" diff --git a/core_lib/runtime/mojang.py b/core_lib/runtime/mojang.py index c3c6e1e..3506802 100644 --- a/core_lib/runtime/mojang.py +++ b/core_lib/runtime/mojang.py @@ -269,8 +269,8 @@ def collect_runtime_files(manifest: dict, runtime_dir: Path, max_workers=RUNTIME if not use_raw: logger.warning( - "Flag \"raw\" is not enabled. But the launcher haven't implemented support for compressed files." - "You will likely to decompress all files before use them." + "The \"raw\" flag is not enabled, but the launcher does not support compressed files yet. " + "You will likely need to decompress all files before using them." ) return result_executables, result_files, result_dirs diff --git a/main.py b/main.py index 6f22e77..ec1e10d 100644 --- a/main.py +++ b/main.py @@ -29,8 +29,8 @@ def main(): # parse arguments parser = argparse.ArgumentParser() parser.add_argument("-m", "--mode", choices=['lightweight', 'full', 'choice'], default='choice', - help="Select mode (lightweight for tui, full is gui," - "choice for a mode select window) (TUI is not implemented)", required=False) + help="Select a mode (lightweight for TUI, full for GUI, or choice to open a mode-selection window). " + "TUI is not implemented yet.", required=False) parser.add_argument("-d", "--debug", action="store_true", help="Enable debug mode", default=False) parser.add_argument("-wd", "--work-dir", default=os.getcwd(), help="Work directory") diff --git a/manager/game.py b/manager/game.py index 64a006f..d78bab6 100644 --- a/manager/game.py +++ b/manager/game.py @@ -494,9 +494,9 @@ class LaunchManager: except Exception as e: self.widget_mgr.download_signal.failed.emit(task_id, str(e)) result.add_warning( - "Some assets were not downloaded. Although is not necessary for launching game." - " But it may cause some texture issue when you playing. (Such as missing textures)" - " Try relaunching to automatic redownload assets." + "Some assets could not be downloaded. They are not required to launch the game," + " but missing assets may cause texture issues while you play." + " Try relaunching to download them automatically." ) else: self.widget_mgr.download_signal.finished.emit(task_id) diff --git a/pages/test.py b/pages/test.py index 8beba34..8cc8d75 100644 --- a/pages/test.py +++ b/pages/test.py @@ -597,8 +597,8 @@ class TestPage(QWidget): f"{len(fails)} asset files failed to download.", ) self.widget_mgr.signal.show_warning_message.emit( - "Some assets were not downloaded. Although is not necessary for launching game." - " But it may cause some texture issue when you playing. (Such as missing textures)" + "Some assets could not be downloaded. They are not required to launch the game," + " but missing assets may cause texture issues while you play." ) else: self.widget_mgr.download_signal.log.emit( diff --git a/pyproject.toml b/pyproject.toml index 1872d05..d13a710 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "testlauncher(taplauncher)" +name = "testlauncher" version = "0.0.4a0" description = "A lightweight Minecraft launcher." readme = "README.md" @@ -19,6 +19,7 @@ build = [ "Nuitka>=4.1", "ordered-set>=4.1", "zstandard>=0.23", + "imageio>=2.37.0" ] [project.urls] diff --git a/window.py b/window.py index 168ba5b..226750b 100644 --- a/window.py +++ b/window.py @@ -111,7 +111,8 @@ class LauncherMainWindow(QMainWindow): # center message (will be deleted if launcher finished development) content = """Still digging!""" - message = "If you found that something might be a issue. You can report it to the main repo! Any suggestion are welcome." + message = ("If you find an issue, you can report it in the main repository. " + "Suggestions are always welcome!") self.icon_label = QLabel() self.icon_label.setObjectName("icon_label") self.dev_info_box = QLabel(content)