From 012ab977a77b4e6ab105ad5c30f5e33400d7d6ea Mon Sep 17 00:00:00 2001 From: Nell Date: Sun, 20 Apr 2025 04:40:14 +0200 Subject: [PATCH] some fix --- Makefile | 32 ++++++++++++++++++++++++++++++++ pysidedeploy.spec | 2 +- requirements.txt | 2 +- 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..021c3df --- /dev/null +++ b/Makefile @@ -0,0 +1,32 @@ +# Makefile pour OxApp - équivalent Linux du build.bat + +.PHONY: help resources deploy pyinstaller installer + +# Commande par défaut - affiche l'aide +help: + @echo "Commandes disponibles:" + @echo " make resources - Compile les ressources" + @echo " make deploy - Déploie l'application" + @echo " make pyinstaller - Crée l'exécutable avec PyInstaller" + @echo " make installer - Crée l'installateur" + +# Compile les ressources +resources: + pyside6-rcc resources.qrc -o resources_rc.py + +# Déploie l'application avec pyside6-deploy +deploy: + pyside6-deploy -c pysidedeploy.spec + +# Crée l'exécutable avec PyInstaller +pyinstaller: + pyinstaller OxApp.spec --noconfirm + +# Crée l'installateur +# Note: Inno Setup est spécifique à Windows, vous devrez utiliser +# un équivalent Linux comme makeself, AppImage, ou Flatpak +installer: + @echo "La création d'installateur sur Linux nécessite un outil différent d'Inno Setup." + @echo "Options recommandées: makeself, AppImage, ou Flatpak" + @echo "Exemple avec makeself (si installé):" + @echo " makeself.sh ./dist/OxApp \"OxApp\" \"OxApp Installation\" ./dist/Ox \ No newline at end of file diff --git a/pysidedeploy.spec b/pysidedeploy.spec index 47b6c41..a9ce0b3 100644 --- a/pysidedeploy.spec +++ b/pysidedeploy.spec @@ -43,7 +43,7 @@ qml_files = excluded_qml_plugins = # qt modules used. comma separated -modules = Network,WebEngineCore,Widgets,Core,WebChannel,WebEngineWidgets,Gui +modules = WebEngineCore,WebEngineWidgets,WebChannel,Core,Gui,Widgets,Network # qt plugins used by the application. only relevant for desktop deployment. for qt plugins used # in android application see [android][plugins] diff --git a/requirements.txt b/requirements.txt index 4dd2ab1..bc52360 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ PySide6<6.9,>=6.8.0 qasync>=0.27.1 -httpx +httpx[http2] anyio \ No newline at end of file