Make it possible to build just one thing for macOS rather than everything.
[dcpomatic.git] / cscript
diff --git a/cscript b/cscript
index b54ec4c46025f76c7e2224a4ffcdc498e705ddd9..4e877144a3c10074a7bddebed6d7caaf6e007635 100644 (file)
--- a/cscript
+++ b/cscript
@@ -768,8 +768,11 @@ def package(target, version, options):
             elif target.distro == 'centos' or target.distro == 'fedora' or target.distro == 'mageia':
                 return package_rpm(target, cpu, version, options)
     elif target.platform == 'osx':
-        archs = ' '.join(f'{t.arch}/{t.deployment}' for t in target.sub_targets)
-        target.command('bash platform/osx/make_dmg.sh %s %s %s %s %s' % (target.environment_prefix, target.directory, target.apple_id, target.apple_password, archs))
+        archs = '-a ' + ' -a '.join(f'{t.arch}/{t.deployment}' for t in target.sub_targets)
+        cmd = 'bash platform/osx/make_dmg.sh -e %s -r %s -i %s -p %s %s' % (target.environment_prefix, target.directory, target.apple_id, target.apple_password, archs)
+        if 'part' in options:
+            cmd += ' -b ' + options['part']
+        target.command(cmd)
         packages = []
         for x in glob.glob('build/platform/osx/DCP-o-matic*.dmg'):
             a = os.path.abspath(x)