aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside-tools/deploy_lib/android/buildozer.py
diff options
context:
space:
mode:
authorShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2023-10-12 09:33:46 +0200
committerShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2023-12-04 13:06:22 +0100
commit75ce3916f291179ed68cdc78f147e30fb7fbaf68 (patch)
treefcd2f80daf79bb3d9df50871afcbac2722b60988 /sources/pyside-tools/deploy_lib/android/buildozer.py
parenteeda9bf8522ba49cb542398d8e01046ea62e2aa2 (diff)
Deployment: Add icon for application
- For Android deployment, by default kivy's icon is used when the application is deployed. This patch makes use of PySide icon as the default for all applications created with pyside6-android-deploy. - Icon formats accepted by Nutika windows: .ico macOS: .icns (contains a 128x128 .png file) linux: all standard image formats. We use .jpg - For Desktop deployment - change the option --linux-onefile-icon to --linux-icon. Both are the same. - Add icon options for macOS and Windows. - Adapt deployment test accordingly. - As an addition, add a default value to the --config-file option so that it picks up the one in the project directory automatically, if it exists. It aligns with the desktop deployment tool as per 6337e4a306babdb4015c248a14ad734b320ed2c1 - As another extra, remove an unused typing import from config.py Pick-to: 6.6 Task-number: PYSIDE-1612 Change-Id: Ia67ea96f94ddffe4bc65652f91c8b394c4e56a33 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside-tools/deploy_lib/android/buildozer.py')
-rw-r--r--sources/pyside-tools/deploy_lib/android/buildozer.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/pyside-tools/deploy_lib/android/buildozer.py b/sources/pyside-tools/deploy_lib/android/buildozer.py
index f17ffd116..dcb3e5cd6 100644
--- a/sources/pyside-tools/deploy_lib/android/buildozer.py
+++ b/sources/pyside-tools/deploy_lib/android/buildozer.py
@@ -130,6 +130,9 @@ class BuildozerConfig(BaseConfig):
# change final apk/aab path
self.set_value("buildozer", "bin_dir", str(pysidedeploy_config.exe_dir.resolve()))
+ # set application icon
+ self.set_value("app", "icon.filename", pysidedeploy_config.icon)
+
self.update_config()
def __get_dependency_files(self, modules: List[str], arch: str) -> List[zipfile.Path]: