aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside-tools/deploy_lib/__init__.py
diff options
context:
space:
mode:
authorShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2024-10-14 17:07:11 +0200
committerShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2024-10-15 09:32:42 +0000
commita1df680b0f92fe70920cedbada8e9969a582f82b (patch)
treed69170881c5bdae591a2ddf9431e228303c0a2f0 /sources/pyside-tools/deploy_lib/__init__.py
parenta5f3828c2c3580d673c9c4f466f71fc93af6966c (diff)
Deployment: Use include-data-dir
- Use --include-data-dir to include the QML modules. This would reduce the command length significantly. - Additionally, package all the subdirectories of the application directory. The user may have other relevant resources required by the application eg: images, fonts, etc. - Add two new directories for directories to be ignored - docs and examples. These directories are not required for the application to run. Pick-to: 6.8 Task-number: PYSIDE-1612 Change-Id: I6269f77c0fd94a54e3b7a44f317bc144bd68e5ec Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside-tools/deploy_lib/__init__.py')
-rw-r--r--sources/pyside-tools/deploy_lib/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/pyside-tools/deploy_lib/__init__.py b/sources/pyside-tools/deploy_lib/__init__.py
index 3417f7a29..902dbc544 100644
--- a/sources/pyside-tools/deploy_lib/__init__.py
+++ b/sources/pyside-tools/deploy_lib/__init__.py
@@ -18,7 +18,8 @@ else:
EXE_FORMAT = ".bin"
DEFAULT_APP_ICON = str((Path(__file__).parent / f"pyside_icon{IMAGE_FORMAT}").resolve())
-DEFAULT_IGNORE_DIRS = ["site-packages", "deployment", ".qtcreator", "build", "dist", "tests"]
+DEFAULT_IGNORE_DIRS = ["site-packages", "deployment", ".qtcreator", "build", "dist", "tests",
+ "doc", "docs", "examples"]
IMPORT_WARNING_PYSIDE = (f"[DEPLOY] Found 'import PySide6' in file {0}"
". Use 'from PySide6 import <module>' or pass the module"