aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside-tools/deploy_lib/__init__.py
diff options
context:
space:
mode:
authorShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2024-02-02 10:04:46 +0100
committerShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2024-03-11 10:56:24 +0100
commit45d03020d756d302dca19e62288dde1bcd3526d1 (patch)
tree415fab112ba4005a439cf6cf231269ab01ff406d /sources/pyside-tools/deploy_lib/__init__.py
parentdec0ac7a94c787d100d1ca3f9298b7c3b07712aa (diff)
Deployment: add permission support and create macOS bundle application
- Look at the ast of the python files of the application to identify the permissions used by the application. Once the permissions are identified, pass the necessary NS property list key to be added to the Info.plist file to Nuitka. - For macOS, when deploying create a macOS application bundle (.app) by default. This makes it align more with Apple recommendations and Qt deployment. - Fix tests. - Fix wheel_tester.py to consider .app for macOS. Task-number: PYSIDE-1612 Task-number: PYSIDE-2468 Change-Id: Ie225c9a92c845b432a8e7eaa791a8aeb86ecd988 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside-tools/deploy_lib/__init__.py')
-rw-r--r--sources/pyside-tools/deploy_lib/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/pyside-tools/deploy_lib/__init__.py b/sources/pyside-tools/deploy_lib/__init__.py
index b3dedd40c..a40d0838b 100644
--- a/sources/pyside-tools/deploy_lib/__init__.py
+++ b/sources/pyside-tools/deploy_lib/__init__.py
@@ -11,7 +11,7 @@ if sys.platform == "win32":
EXE_FORMAT = ".exe"
elif sys.platform == "darwin":
IMAGE_FORMAT = ".icns"
- EXE_FORMAT = ".bin"
+ EXE_FORMAT = ".app"
else:
IMAGE_FORMAT = ".jpg"
EXE_FORMAT = ".bin"
@@ -52,7 +52,7 @@ def get_all_pyside_modules():
from .commands import run_command, run_qmlimportscanner
-from .dependency_util import find_pyside_modules, QtDependencyReader
+from .dependency_util import find_pyside_modules, find_permission_categories, QtDependencyReader
from .nuitka_helper import Nuitka
from .config import BaseConfig, Config, DesktopConfig
from .python_helper import PythonExecutable