summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorL. E. Segovia <amy@centricular.com>2025-06-20 15:05:46 -0300
committerL. E. Segovia <amy@centricular.com>2025-07-14 14:43:24 -0300
commit51b2f2ce156f7a3fc260179501f694e8cf716a38 (patch)
treee66d0472154db286ca505874c625f2d1bf97c246
parent4482d4af19bad7e929097ba4b0f9980e6b1c9950 (diff)
osx: Update pkgbuild compression algorithms
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1893>
-rw-r--r--cerbero/packages/osx/buildtools.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/cerbero/packages/osx/buildtools.py b/cerbero/packages/osx/buildtools.py
index 61042ec9..cbd294b3 100644
--- a/cerbero/packages/osx/buildtools.py
+++ b/cerbero/packages/osx/buildtools.py
@@ -25,7 +25,9 @@ class PackageBuild(object):
CMD = 'pkgbuild'
- def create_package(self, root, pkg_id, version, title, output_file, destination='/opt/', scripts_path=None):
+ def create_package(
+ self, root, pkg_id, version, title, output_file, destination='/opt/', scripts_path=None, min_os_version='10.13'
+ ):
"""
Creates an osx flat package, where all files are properly bundled in a
directory that is set as the package root
@@ -45,7 +47,14 @@ class PackageBuild(object):
@param scripts_path: relative path for package scripts
@type scripts_path: str
"""
- args = {'root': root, 'identifier': pkg_id, 'version': version, 'install-location': destination}
+ args = {
+ 'root': root,
+ 'identifier': pkg_id,
+ 'version': version,
+ 'install-location': destination,
+ 'compression': 'latest',
+ 'min-os-version': min_os_version,
+ }
if scripts_path is not None:
args['scripts'] = scripts_path
shell.new_call(self._cmd_with_args(args, output_file))