mirror of
https://github.com/xgui4/LCE-Qt-Launcher.git
synced 2026-07-16 06:10:50 +00:00
27 lines
807 B
PowerShell
27 lines
807 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 $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" |