better windows build system hook , and added appimage workflow to nightly

This commit is contained in:
xgui4
2026-05-29 02:33:29 -04:00
parent 7dcbd0978f
commit fd67f5bbe4
9 changed files with 56 additions and 46 deletions

View File

@@ -1,29 +0,0 @@
@echo off
echo "Starting Compilaton of Qt Ressource"
pyside6-rcc "res.qrc" -o "src\lce_qt_launcher\res_rc.py" || exit /b 1
echo "done"
setlocal enabledelayedexpansion
echo "Compilation of Qt ui files"
set ui[0]="form"
set ui[1]="system_info"
set ui[2]="instance"
set ui[3]="settingDialog"
set ui[4]="about"
set ui[5]="contentInstaller"
for /L %%i in (0,1,5) do (
set "filename=!ui[%%i]!"
echo "Compiling !filename!.ui Qt UI file"
pyside6-uic "src/!filename!.ui" -o "src\lce_qt_launcher\ui_!filename!.py" || (
echo Error compiling !filename!.ui
exit /b 1
)
echo "done"
)
echo "Compilation of all Qt ui files finished"

18
scripts/build.ps1 Normal file
View File

@@ -0,0 +1,18 @@
$ErrorActionPreference = 'Stop'
Write-Output "Starting Compilaton of Qt Ressource"
pyside6-rcc "res.qrc" -o "src\lce_qt_launcher\res_rc.py" || exit /b 1
Write-Output "done"
Write-Output "Compilation of Qt ui files"
$QT_UI_ARRAY="system_info","form","instance","settingDialog","about", "contentInstaller"
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"
Write-Output "done"
}
Write-Output "Compilation of all Qt ui files finished"

View File

@@ -1,2 +0,0 @@
@echo off
powershell.exe -ExecutionPolicy Bypass -File "clean.ps1"

View File

@@ -17,11 +17,11 @@ Write-Output "done"
foreach ($QT_UI in $QT_UI_ARRAY)
{
Write-Output "Removing the compilated ui_$QT_UI.py Qt UI file"
Write-Output "Compiling $QT_UI.ui Qt UI file"
Remove-Item -Path "src\lce_qt_launcher\ui_$QT_UI.py"
Write-Output "done"
}
Write-Output "Removing every pycaches filed"
Get-ChildItem -Path . -Recurse -Include '__pycache__', '*.pyc' | Remove-Item -Recurse -Force
Write-Output "done"
Write-Output "done"

View File

@@ -1,4 +0,0 @@
@echo off
cd /d "%~dp0"
powershell.exe -ExecutionPolicy Bypass -File "..\packages.ps1"