Files
LCE-Qt-Launcher/schemas/lce_qrt_inst_config.json
xgui4 166f57f28f feat: Enhance instance loading and UI updates
- Updated `load_instance` function to handle FileNotFoundError gracefully.
- Improved `Launcher` class to update UI elements with instance details after loading.
- Added new properties `image` and `news_feed` to the `Instance` class.
- Introduced JSON schema for instance configuration with new properties.
- Created default instance configuration for "LCE-Hub neoLegacy".
- Added scripts for downloading images and preparing packages.
- Implemented new image handling class for better image management.
- Updated versioning in `main.py` and `uv.lock` for release 0.26.4.11.
2026-04-11 00:22:16 -04:00

77 lines
2.7 KiB
JSON

{
"$schema" : "https://json-schema.org/draft-07/schema#",
"$id" : ".",
"title" : "LCE Qt Launcher Instance Extension JSON",
"description": "LCE Qt Launcher Instance Config",
"type" : "object",
"properties": {
"name" : {
"description": "Name of the instance",
"type" : "string",
"default" : "Default"
},
"installation_path" : {
"description": "Installation Path of the game files",
"type" : "string",
"default" : "."
},
"username" : {
"description": "The username of the player for the instance",
"type" : "string",
"default" : "Steve"
},
"exe_name" : {
"description": "The executable file of the instance",
"type" : "string",
"default" : "Minecraft.Client.exe"
},
"archive_file" : {
"description": "The archive filename to download or extract",
"type" : "string",
"default" : "LCEWindows64.zip"
},
"url": {
"description": "The url/repo of the project",
"type" : "string",
"default" : "https://github.com/MCLCE/minecraftconsoles"
},
"image" : {
"description": "Image of the instance to show (right now it is only local, will be updated later)",
"type" : "string",
"default" : ":/assets/minecraft.png"
},
"news_feed" : {
"description": "The website of the news feed to display in the news tabs",
"type" : "string",
"default" : "https://github.com/MCLCE/minecraftconsoles/commits"
},
"instance_source" : {
"description": "Instance Source Object",
"examples": [
"InstanceSource.GITHUB_RELEASE",
"InstanceSource.FORGEJO_RELEASE",
"InstanceSource.REMOTE_GIT_SOURCE",
"InstanceSource.LOCAL_INSTALLATION",
"InstanceSource.LOCAL_SOURCE_CODE"
],
"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"
}
}
}