From 84f0cae91025bc9349beb979bb664a4d63e6499c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 18 Jul 2022 23:54:55 +0200 Subject: Make it possible to build just one thing for macOS rather than everything. --- cscript | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cscript') 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) -- cgit v1.2.3