mirror of
https://github.com/xgui4/LCE-Qt-Launcher.git
synced 2026-07-15 22:02:26 +00:00
fix the windows build and remove useless print in __init__
This commit is contained in:
2
.vscode/tasks.json
vendored
2
.vscode/tasks.json
vendored
@@ -11,7 +11,7 @@
|
||||
{
|
||||
"label": "PySide: build (Windows)",
|
||||
"type": "shell",
|
||||
"command":"${workspaceFolder}/scripts/build.cmd",
|
||||
"command":"${workspaceFolder}/scripts/build.ps1",
|
||||
"group": "build",
|
||||
"problemMatcher": []
|
||||
},
|
||||
|
||||
@@ -9,12 +9,12 @@ class CustomBuildHook(BuildHookInterface): # pyright: ignore[reportMissingTypeA
|
||||
if os.name == "posix":
|
||||
_ = subprocess.run("./scripts/clean.sh", check=True)
|
||||
if os.name == "nt":
|
||||
_ = subprocess.run(["powershell", "-ExecutionPolicy", "Bypass", "-File", "\"scripts\\clean.ps1\""], check=True, shell=True)
|
||||
_ = subprocess.run(["powershell", "-ExecutionPolicy", "Bypass", "-File", "scripts\\clean.ps1"], check=True, shell=True)
|
||||
return super().clean(versions)
|
||||
|
||||
def initialize(self, version, build_data) -> None: # pyright: ignore[reportMissingParameterType]
|
||||
if os.name == "posix":
|
||||
_ = subprocess.run("./scripts/build.sh", check=True)
|
||||
if os.name == "nt":
|
||||
_ = subprocess.run(["powershell", "ExecutionPolicy", "Bypass", "-File", "\"scripts\\build.ps1\""], check=True, shell=True)
|
||||
_ = subprocess.run(["powershell", "-ExecutionPolicy", "Bypass", "-File", "scripts\\build.ps1"], check=True, shell=True)
|
||||
return super().initialize(version, build_data)
|
||||
|
||||
@@ -4,4 +4,4 @@ import subprocess
|
||||
if os.name == "posix":
|
||||
_ = subprocess.run("./scripts/packages.sh", check=True)
|
||||
if os.name == "nt":
|
||||
_ = subprocess.run(["powershell", "-ExecutionPolicy", "Bypass", "-File", "\"scripts\\packages.ps1\""], check=True, shell=True)
|
||||
_ = subprocess.run(["powershell", "-ExecutionPolicy", "Bypass", "-File", "scripts\\packages.ps1"], check=True, shell=True)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
Write-Output "Starting Compilaton of Qt Ressource"
|
||||
pyside6-rcc "res.qrc" -o "src\lce_qt_launcher\res_rc.py" || exit /b 1
|
||||
pyside6-rcc "res.qrc" -o "src\lce_qt_launcher\res_rc.py"
|
||||
Write-Output "done"
|
||||
|
||||
Write-Output "Compilation of Qt ui files"
|
||||
@@ -11,7 +11,7 @@ $QT_UI_ARRAY="system_info","form","instance","settingDialog","about", "contentIn
|
||||
foreach ($QT_UI in $QT_UI_ARRAY)
|
||||
{
|
||||
Write-Output "Compiling $QT_UI.ui Qt UI file"
|
||||
pyside6-uic "src/$T_UI..ui" -o "src\lce_qt_launcher\ui_$Qt_UI.py"
|
||||
pyside6-uic "src\$QT_UI.ui" -o "src\lce_qt_launcher\ui_$Qt_UI.py"
|
||||
Write-Output "done"
|
||||
}
|
||||
|
||||
|
||||
@@ -28,8 +28,6 @@ try:
|
||||
_license_url_temp: str = app_metadata["LicenseURL"]
|
||||
_license_temp: str = app_metadata["License"]
|
||||
|
||||
print(app_metadata.json)
|
||||
|
||||
if _version_temp:
|
||||
version_str = _version_temp
|
||||
if _app_name_temp:
|
||||
|
||||
Reference in New Issue
Block a user