summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-12-26 01:58:39 +0100
committerCarl Hetherington <cth@carlh.net>2020-12-26 01:58:39 +0100
commitb7afcbe3a94f25cc7f587fd9e3be0d3a3446aa16 (patch)
treef10fa562c2f28b3c586d50ee670a02b93eabbd18 /cscript
parentbd7e1250b2ea2391cd98def060c92d5c7bcbc67c (diff)
Fix packaging on arm64.
Diffstat (limited to 'cscript')
-rw-r--r--cscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/cscript b/cscript
index 0897a7610..cd8d814b5 100644
--- a/cscript
+++ b/cscript
@@ -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'):