From 10860a681f62a7d52c882ac1607f8a3a2390df6a Mon Sep 17 00:00:00 2001 From: Richie Yeung Date: Tue, 21 Nov 2023 14:09:37 +0000 Subject: [PATCH] Setup pyside-deploy Run pyside6-deploy -c zxlive/pysidedeploy.spec --- deploy.py | 7 ---- zxlive/pysidedeploy.spec | 69 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 7 deletions(-) delete mode 100644 deploy.py create mode 100755 zxlive/pysidedeploy.spec diff --git a/deploy.py b/deploy.py deleted file mode 100644 index 8936e5bc..00000000 --- a/deploy.py +++ /dev/null @@ -1,7 +0,0 @@ -import sys -from cx_Freeze import setup, Executable - -# base="Win32GUI" should be used only for Windows GUI app -base = "Win32GUI" if sys.platform == "win32" else None - -setup(executables=[Executable("zxlive/__main__.py", base=base, target_name="zxlive")]) diff --git a/zxlive/pysidedeploy.spec b/zxlive/pysidedeploy.spec new file mode 100755 index 00000000..8a61a12c --- /dev/null +++ b/zxlive/pysidedeploy.spec @@ -0,0 +1,69 @@ +[app] +# title of your application +title = ZXLive +# project directory. the general assumption is that project_dir is the parent directory +# of input_file +project_dir = ./zxlive +# source file path +input_file = __main__.py +# directory where exec is stored +exec_directory = ./zxlive +# path to .pyproject project file +project_file = + +[python] +# python path +python_path = python +# python packages to install +# ordered-set = increase compile time performance of nuitka packaging +# zstandard = provides final executable size optimization +packages = nuitka==1.5.5,ordered_set,zstandard +# 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 are added automatically +qml_files = +# excluded qml plugin binaries +excluded_qml_plugins = +# path to pyside wheel +wheel_pyside = +# path to shiboken wheel +wheel_shiboken = + +[nuitka] +# (str) specify any extra nuitka arguments +# eg = extra_args = --show-modules --follow-stdlib +extra_args = --quiet --noinclude-qt-translations=True + --nofollow-import-to=IPython + --nofollow-import-to=scipy + --nofollow-import-to=pytest + --nofollow-import-to=matplotlib + --nofollow-import-to=pandas + --nofollow-import-to=sympy + --nofollow-import-to=ipywidgets + --nofollow-import-to=tkinter + --include-data-dir=./zxlive/icons=zxlive/icons + +[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 = +# modules used. comma separated +modules = +# other libraries to be loaded. comma separated. +local_libs = plugins_platforms_qtforandroid +# architecture of deployed platform +# possible values = ["aarch64", "armv7a", "i686", "x86_64"] +arch = +