diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-07-18 23:54:55 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-07-20 10:24:35 +0200 |
| commit | 84f0cae91025bc9349beb979bb664a4d63e6499c (patch) | |
| tree | cc38b64e462d70bcaaefe4d09d665da4172f34aa /cscript | |
| parent | 3dd81874d38753bd03cdc215dd85a4db5640fe3f (diff) | |
Make it possible to build just one thing for macOS rather than everything.
Diffstat (limited to 'cscript')
| -rw-r--r-- | cscript | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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) |
