summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-07-18 23:54:55 +0200
committerCarl Hetherington <cth@carlh.net>2022-07-20 10:24:35 +0200
commit84f0cae91025bc9349beb979bb664a4d63e6499c (patch)
treecc38b64e462d70bcaaefe4d09d665da4172f34aa /cscript
parent3dd81874d38753bd03cdc215dd85a4db5640fe3f (diff)
Make it possible to build just one thing for macOS rather than everything.
Diffstat (limited to 'cscript')
-rw-r--r--cscript7
1 files changed, 5 insertions, 2 deletions
diff --git a/cscript b/cscript
index b54ec4c46..4e877144a 100644
--- 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)