try to fix the program

This commit is contained in:
xgui4
2026-03-31 00:34:39 -04:00
parent 87a03db525
commit 16b5033176
6 changed files with 9 additions and 5 deletions

View File

@@ -37,7 +37,7 @@ jobs:
- name: Build with Nuitka
run: |
hatch run python -m nuitka --standalone --enable-plugin=pyside6 --assume-yes-for-downloads --windows-console-mode=disable --output-dir=dist src/main.py
hatch run python -m nuitka --standalone --enable-plugin=pyside6 --assume-yes-for-downloads --windows-console-mode=attach --output-dir=dist src/main.py
- name: Package Windows build
if: matrix.os == 'windows-latest'

View File

@@ -1,3 +1,5 @@
@echo off
pyside6-rcc "res.qrc" -o "src\res_rc.py"
pyside6-uic "src\system_info.ui" -o "src\ui_system_info.py"
pyside6-uic "src\form.ui" -o "src\ui_form.py"

3
clean.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env sh
rm -rf "*/__pycache__"

View File

@@ -1,4 +1,3 @@
from tkinter import W
from PySide6.QtWidgets import QApplication, QMainWindow, QLabel, QProgressBar, QVBoxLayout, QDialog, QMessageBox, QFileDialog, QInputDialog, QWidget
from PySide6.QtGui import QPalette, QPixmap, QBrush
from PySide6.QtCore import qVersion

View File

@@ -68,8 +68,6 @@ QUESTIONS_OPTIONS = QMessageBox.StandardButton.Yes | QMessageBox.StandardButton.
from ui_form import Ui_launcher
from ui_system_info import Ui_sys_info_dialog
import res_rc
def gen_inst_from_form(parent : QWidget):
instanceManager.instance = features.new_instance_from_form(parent)
@@ -210,4 +208,4 @@ if __name__ == "__main__":
except FileNotFoundError:
_ = QMessageBox.warning(None,"Error", f"{theme} file not found. Reverting to default theme")
sys.exit(app.exec())
sys.exit(app.exec())

2
uv.lock generated
View File

@@ -471,6 +471,7 @@ dependencies = [
{ name = "hatch" },
{ name = "nuitka" },
{ name = "patchelf", marker = "sys_platform == 'linux'" },
{ name = "pillow" },
{ name = "pip" },
{ name = "pyside6", marker = "sys_platform == 'darwin' or sys_platform == 'linux' or sys_platform == 'win32'" },
{ name = "requests" },
@@ -484,6 +485,7 @@ requires-dist = [
{ name = "hatch" },
{ name = "nuitka" },
{ name = "patchelf", marker = "sys_platform == 'linux'" },
{ name = "pillow" },
{ name = "pip" },
{ name = "pyside6", marker = "sys_platform == 'darwin' or sys_platform == 'linux' or sys_platform == 'win32'" },
{ name = "requests" },