Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

[macos] Skip permissions folder when building krita.app

Dmitry Kazakovca58a19505ca
diff --git a/packaging/macos/macos-deploy.py b/packaging/macos/macos-deploy.py
index a0b6dbf18b..1ce4a951cf 100644
--- a/packaging/macos/macos-deploy.py
+++ b/packaging/macos/macos-deploy.py
@@ -486,6 +486,14 @@ def kritaDeploy(from_install: pathlib.Path, dst: pathlib.Path, source: pathlib.P
if fileToRemove.exists():
shutil.rmtree(fileToRemove)
+ # remove permissions plugins folder, these persmissions are to
+ # be linked statically into the application and cannot be used on
+ # the runtime
+ # See: https://github.com/qt/qtbase/commit/f0a7d74e1dd2c1d802aa09d7b8c144599f4a54ce
+ fileToRemove = krita_app['plugins'].joinpath('permissions')
+ if fileToRemove.exists():
+ shutil.rmtree(fileToRemove)
+
# Fix file permissions
filesToFix = list()
filesToFix.extend(krita_app['contents'].rglob('*.dylib'))