From: Carl Hetherington Date: Wed, 30 Dec 2020 11:36:46 +0000 (+0100) Subject: fixup. X-Git-Tag: 11.0-build-runs X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=0ebfc53e58f6de4d7b3924758b28a76476c17602;hp=1aec1ccf0bc4399d5770ed7d3b7bf7b6300c7368;p=dcpomatic.git fixup. --- diff --git a/cscript b/cscript index 48acd1046..d507abc7f 100644 --- a/cscript +++ b/cscript @@ -690,11 +690,11 @@ def package(target, version, options): return package_rpm(target, cpu, version, options) elif target.platform == 'osx': name = '' - if sorted(target.archs) == sorted(('arm64', 'x86_64')): + if hasattr(target, 'archs') and sorted(target.archs) == sorted(('arm64', 'x86_64')): name = 'arm-intel-64' - elif sorted(target.archs) == sorted(('i386', 'x86_64')): + elif hasattr(target, 'archs') and sorted(target.archs) == sorted(('i386', 'x86_64')): name = 'intel-32-64' - elif target.archs == ['arm64']: + elif hasattr(target, 'arch') and target.arch == ['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 = []