diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-12-26 01:58:39 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-12-26 01:58:39 +0100 |
| commit | b7afcbe3a94f25cc7f587fd9e3be0d3a3446aa16 (patch) | |
| tree | f10fa562c2f28b3c586d50ee670a02b93eabbd18 /cscript | |
| parent | bd7e1250b2ea2391cd98def060c92d5c7bcbc67c (diff) | |
Fix packaging on arm64.
Diffstat (limited to 'cscript')
| -rw-r--r-- | cscript | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -688,10 +688,10 @@ 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 target.bits is None: + elif target.platform == 'osx' and hasattr(target, 'archs'): target.command('bash platform/osx/make_dmg.sh %s %s universal no %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 target.bits == 64: + elif target.platform == 'osx' and hasattr(target, 'arch'): target.command('bash platform/osx/make_dmg.sh %s %s thin %s %s' % (target.environment_prefix, target.directory, target.apple_id, target.apple_password)) packages = [] for x in glob.glob('build/platform/osx/DCP-o-matic*.dmg'): |
