diff --git a/.gitignore b/.gitignore index 07aa18c..695e47f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .venv OxApp.dist -installer \ No newline at end of file +installer +OxApp.bin \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 6845554..d502e11 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,7 +3,7 @@ - + diff --git a/.idea/oxapp25.iml b/.idea/oxapp25.iml index 51cc41f..f1a839c 100644 --- a/.idea/oxapp25.iml +++ b/.idea/oxapp25.iml @@ -4,7 +4,7 @@ - + \ No newline at end of file diff --git a/Makefile b/Makefile index 021c3df..48fdcbe 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ resources: # Déploie l'application avec pyside6-deploy deploy: - pyside6-deploy -c pysidedeploy.spec + pyside6-deploy -c pysidedeploy_linux.spec # Crée l'exécutable avec PyInstaller pyinstaller: diff --git a/pysidedeploy.spec b/pysidedeploy.spec index 51eb00a..f43d8ca 100644 --- a/pysidedeploy.spec +++ b/pysidedeploy.spec @@ -17,7 +17,7 @@ input_file = D:\Dev\oxapp25\main.py exec_directory = . # path to .pyproject project file -project_file = +project_file = # application icon icon = D:\Dev\oxapp25\oxpanel.ico @@ -37,10 +37,10 @@ android_packages = buildozer==1.5.0,cython==0.29.33 # comma separated path to qml files required # normally all the qml files required by the project are added automatically -qml_files = +qml_files = # excluded qml plugin binaries -excluded_qml_plugins = +excluded_qml_plugins = # qt modules used. comma separated modules = Network,WebEngineCore,Widgets,Gui,WebEngineWidgets,Core,WebChannel @@ -52,20 +52,20 @@ plugins = networkinformation,styles,networkaccess,tls [android] # path to pyside wheel -wheel_pyside = +wheel_pyside = # path to shiboken wheel -wheel_shiboken = +wheel_shiboken = # plugins to be copied to libs folder of the packaged application. comma separated -plugins = +plugins = [nuitka] # usage description for permissions requested by the app as found in the info.plist file # of the app bundle # eg = extra_args = --show-modules --follow-stdlib -macos.permissions = +macos.permissions = # mode of using nuitka. accepts standalone or onefile. default is onefile. mode = standalone @@ -81,22 +81,21 @@ extra_args = --quiet --noinclude-qt-translations --windows-console-mode=disable mode = release # contrains path to pyside6 and shiboken6 recipe dir -recipe_dir = +recipe_dir = # path to extra qt android jars to be loaded by the application -jars_dir = +jars_dir = # if empty uses default ndk path downloaded by buildozer -ndk_path = +ndk_path = # if empty uses default sdk path downloaded by buildozer -sdk_path = +sdk_path = # other libraries to be loaded. comma separated. # loaded at app startup -local_libs = +local_libs = # architecture of deployed platform # possible values = ["aarch64", "armv7a", "i686", "x86_64"] -arch = - +arch = diff --git a/pysidedeploy_linux.spec b/pysidedeploy_linux.spec new file mode 100755 index 0000000..efd1ce5 --- /dev/null +++ b/pysidedeploy_linux.spec @@ -0,0 +1,99 @@ +[app] + +# title of your application +title = OxApp + +# project directory. the general assumption is that project_dir is the parent directory +# of input_file +project_dir = /home/nell/dev/oxapp25 + +# source file path +input_file = /home/nell/dev/oxapp25/main.py + +# directory where the executable output is generated +exec_directory = . + +# path to .pyproject project file +project_file = + +# application icon +icon = /home/nell/dev/oxapp25/oxpanel.ico + +[python] + +# python path +python_path = /home/nell/dev/oxapp25/.venv/bin/python + +# python packages to install +packages = Nuitka==2.5.1 + +# buildozer = for deploying Android application +android_packages = buildozer==1.5.0,cython==0.29.33 + +[qt] + +# comma separated path to qml files required +# normally all the qml files required by the project are added automatically +qml_files = + +# excluded qml plugin binaries +excluded_qml_plugins = + +# qt modules used. comma separated +modules = Positioning,WebChannel,Quick,QuickWidgets,QmlMeta,OpenGL,DBus,Core,QmlModels,QmlWorkerScript,Qml,Network,Widgets,Gui,WebEngineWidgets,PrintSupport,WebEngineCore + +# qt plugins used by the application. only relevant for desktop deployment. for qt plugins used +# in android application see [android][plugins] +plugins = networkinformation,scenegraph,platforms/darwin,iconengines,tls,xcbglintegrations,qmltooling,position,platformthemes,imageformats,platforms,platforminputcontexts,accessiblebridge,generic,networkaccess,styles,printsupport,egldeviceintegrations + +[android] + +# path to pyside wheel +wheel_pyside = + +# path to shiboken wheel +wheel_shiboken = + +# plugins to be copied to libs folder of the packaged application. comma separated +plugins = + +[nuitka] + +# usage description for permissions requested by the app as found in the info.plist file +# of the app bundle +# eg = extra_args = --show-modules --follow-stdlib +macos.permissions = + +# mode of using nuitka. accepts standalone or onefile. default is onefile. +mode = onefile + +# (str) specify any extra nuitka arguments +extra_args = --quiet --noinclude-qt-translations --jobs=auto --lto=yes + +[buildozer] + +# build mode +# possible options = [release, debug] +# release creates an aab, while debug creates an apk +mode = debug + +# contrains path to pyside6 and shiboken6 recipe dir +recipe_dir = + +# path to extra qt android jars to be loaded by the application +jars_dir = + +# if empty uses default ndk path downloaded by buildozer +ndk_path = + +# if empty uses default sdk path downloaded by buildozer +sdk_path = + +# other libraries to be loaded. comma separated. +# loaded at app startup +local_libs = + +# architecture of deployed platform +# possible values = ["aarch64", "armv7a", "i686", "x86_64"] +arch = +