mirror of
https://github.com/xgui4/LCE-Qt-Launcher.git
synced 2026-07-16 00:20:46 +00:00
bump version to alpha 6 and minors update to git managers and app data
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
pkgs.python3Packages.buildPythonApplication rec {
|
||||
pname = "lce-qt-launcher";
|
||||
version = "0.0.21.5";
|
||||
version = "0.0.21.6";
|
||||
format = "pyproject";
|
||||
|
||||
src = ./.;
|
||||
|
||||
@@ -7,7 +7,7 @@ build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "LCE-Qt-Launcher"
|
||||
version = "0.0.21a5"
|
||||
version = "0.0.21a6"
|
||||
description = "A free cross-platform custom Minecraft LCE launcher, written with PySide6 (Qt6 for Python).."
|
||||
requires-python = ">3.10, <3.13"
|
||||
license = "GPL-3.0-or-later"
|
||||
|
||||
@@ -21,7 +21,7 @@ let
|
||||
in
|
||||
pkgs.mkShell rec {
|
||||
pname = "lce-qt-launcher";
|
||||
version = "0.0.21.5";
|
||||
version = "0.0.21.6";
|
||||
format = "pyproject";
|
||||
|
||||
src = ./.;
|
||||
|
||||
@@ -4,7 +4,7 @@ from importlib.metadata._meta import PackageMetadata
|
||||
from PySide6.QtCore import qVersion
|
||||
|
||||
_FALLBACK_APP_NAME = "LCE Qt Launcher"
|
||||
_FALLBACK_VERSION = "0.0.21a5"
|
||||
_FALLBACK_VERSION = "0.0.21a6"
|
||||
_FALLBACK_LICENSE = "GPLv3"
|
||||
_FALLBACK_LICENSE_LINK = "https://www.gnu.org/licenses/gpl-3.0"
|
||||
_FALLBACK_GIT_REPO_URL = "https://github.com/xgui4/LCE-QT-Launcher"
|
||||
|
||||
@@ -22,8 +22,8 @@ along with this program. If not, see https://www.gnu.org/licenses/.
|
||||
# nuitka-project-if: {OS} == "Windows":
|
||||
# nuitka-project: --windows-icon-from-ico=assets/app.ico
|
||||
# nuitka-project: --windows-product-name=LCE-Qt-Launcher
|
||||
# nuitka-project: --product-version="0.0.21.5"
|
||||
# nuitka-project: --file-version="0.0.21.5"
|
||||
# nuitka-project: --product-version="0.0.21.6"
|
||||
# nuitka-project: --file-version="0.0.21.6"
|
||||
# nuitka-project: --file-description="LCE Qt Launcher Alpha"
|
||||
# nuitka-project: --copyright="Copyleft Xgui4 2026 (GPLv3)"
|
||||
|
||||
|
||||
@@ -2,13 +2,16 @@ import subprocess
|
||||
|
||||
from lce_qt_launcher.models.app_data import AppData
|
||||
|
||||
DEFAULT_DATA_ZIP_URL = "archive/master.zip"
|
||||
|
||||
def verify_git_installation():
|
||||
print(subprocess.getoutput("git --version"))
|
||||
|
||||
def clone_repo(repo_url : str, path : str, appData : AppData):
|
||||
subprocess.run(["git", "clone", repo_url, path], cwd=appData.appDataDirs[0])
|
||||
if verify_git_installation():
|
||||
subprocess.run(["git", "clone", repo_url, path], cwd=appData.appDataDirs[0])
|
||||
else:
|
||||
pass
|
||||
|
||||
def update_repo(appData : AppData):
|
||||
subprocess.run(["git", "pull"], cwd=appData.appDataDirs[0])
|
||||
|
||||
verify_git_installation()
|
||||
subprocess.run(["git", "pull"], cwd=appData.appDataDirs[0])
|
||||
@@ -72,6 +72,9 @@ class AppData(QObject):
|
||||
else:
|
||||
term_service.print_information(f"{file_path} was not a file.")
|
||||
self.instsList = instancesLists
|
||||
|
||||
def is_data_installed(self) -> bool:
|
||||
return Path.exists(Path(os.path.join(self.appDataDirs[0], "data")))
|
||||
|
||||
def _get_source_dir(self) -> str:
|
||||
if _is_compiled() or _is_installed():
|
||||
|
||||
Reference in New Issue
Block a user