diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-12-30 12:32:27 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-12-30 12:32:27 +0100 |
| commit | 1aec1ccf0bc4399d5770ed7d3b7bf7b6300c7368 (patch) | |
| tree | 0ee6ff675190837a0ac2b0c8e441b32c6ae74938 | |
| parent | dce3e019e9a94f512b969872560099927ad762d2 (diff) | |
dmg fixes.
| -rw-r--r-- | cscript | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -688,14 +688,15 @@ def package(target, version, options): return package_debian(target, cpu, 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' and hasattr(target, 'archs') and sorted(target.archs) == sorted(('arm64', 'x86_64')): - target.command('bash platform/osx/make_dmg.sh %s %s arm-intel-64 %s %s' % (target.environment_prefix, target.directory, target.apple_id, target.apple_password)) - return [os.path.abspath(x) for x in glob.glob('build/platform/osx/DCP-o-matic*.dmg')] - elif target.platform == 'osx' and hasattr(target, 'archs') and sorted(target.archs) == sorted(('i386', 'x86_64')): - target.command('bash platform/osx/make_dmg.sh %s %s intel-32-64 %s %s' % (target.environment_prefix, target.directory, target.apple_id, target.apple_password)) - return [os.path.abspath(x) for x in glob.glob('build/platform/osx/DCP-o-matic*.dmg')] - elif target.platform == 'osx' and hasattr(target, 'arch') and target.arch == 'arm64': - target.command('bash platform/osx/make_dmg.sh %s %s arm64 %s %s' % (target.environment_prefix, target.directory, target.apple_id, target.apple_password)) + elif target.platform == 'osx': + name = '' + if sorted(target.archs) == sorted(('arm64', 'x86_64')): + name = 'arm-intel-64' + elif sorted(target.archs) == sorted(('i386', 'x86_64')): + name = 'intel-32-64' + elif target.archs == ['arm64']: + name = 'arm64' + target.command('bash platform/osx/make_dmg.sh %s %s %s %s %s' % (target.environment_prefix, target.directory, name, target.apple_id, target.apple_password)) packages = [] for x in glob.glob('build/platform/osx/DCP-o-matic*.dmg'): a = os.path.abspath(x) |
