Retrait win11toast et compilation agressive via fichier spec

This commit is contained in:
2026-03-09 12:52:05 +01:00
parent 52e4c01f3d
commit 18c708597a
2 changed files with 134 additions and 8 deletions

View File

@@ -12,9 +12,6 @@ from PySide6.QtWidgets import QMainWindow, QApplication
import resources as resources # This is generated from the .qrc file # noqa: F401
if sys.platform=='windows' or sys.platform=="win32":
from win11toast import toast # type: ignore
if getattr(sys, 'frozen', False) and hasattr(sys, '_MEIPASS'):
bundle_dir = Path(sys._MEIPASS)
else:
@@ -87,11 +84,7 @@ class MainWindow(QMainWindow):
@staticmethod
def connexion_btn_link():
buttons = [
{'activationType': 'protocol', 'arguments': '', 'content': 'Entrer en jeu'},
]
if sys.platform=='windows' or sys.platform=="win32":
toast('C\'est enfin à ton tour d\'entrer en jeu! 🎮🐍', app_id='LaTanière Launcher',buttons=buttons)
return None
if __name__ == "__main__":
app = QApplication(sys.argv)