From 75ce3916f291179ed68cdc78f147e30fb7fbaf68 Mon Sep 17 00:00:00 2001 From: Shyamnath Premnadh Date: Thu, 12 Oct 2023 09:33:46 +0200 Subject: 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 --- build_scripts/platforms/unix.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'build_scripts/platforms/unix.py') diff --git a/build_scripts/platforms/unix.py b/build_scripts/platforms/unix.py index 6b4a3e95d..8f8e496be 100644 --- a/build_scripts/platforms/unix.py +++ b/build_scripts/platforms/unix.py @@ -140,7 +140,8 @@ def prepare_packages_posix(pyside_build, _vars, cross_build=False): src = f"{{install_dir}}/bin/{script_dir}" target = f"{{st_build_dir}}/{{st_package_name}}/scripts/{script_dir}" # Exclude subdirectory tests - copydir(src, target, _filter=["*.py", "*.spec", "*.jpg"], recursive=False, _vars=_vars) + copydir(src, target, _filter=["*.py", "*.spec", "*.jpg", "*.icns", "*.ico"], + recursive=False, _vars=_vars) # /bin/* -> {st_package_name}/ executables.extend(copydir( -- cgit v1.2.3