Files
LCE-Qt-Launcher/scripts/clean.ps1
xgui4 47929b748c Update nightly workflow, clean scripts, and FreeBSD port files
- Refine Flatpak development notes in nightly.yml
- Adjust FreeBSD port categories in Makefile
- Change install script to require sudo for makesum
- Add contentInstaller to clean scripts for Qt UI resources
- Introduce distinfo file for FreeBSD port
2026-05-16 22:00:53 -04:00

28 lines
826 B
PowerShell

#!/usr/bin/env pwsh
$ErrorActionPreference = 'Stop'
Write-Output "Removing the Nuitka compilation folder"
Remove-Item -Path "dist" -Recurse
Write-Output "done"
Write-Output "Removing the compilated Qt UI and Qt Ressource files"
$QT_RESSOURCE="res_rc"
$QT_UI_ARRAY="system_info","form","instance","settingDialog","about", "contentInstaller"
Write-Output "Removing the compilated Qt Ressource file"
Remove-Item -Path "src\lce_qt_launcher\$QT_RESSOURCE.py"
Write-Output "done"
foreach ($QT_UI in $QT_UI_ARRAY)
{
Write-Output "Removing the compilated ui_$QT_UI.py 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"