diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-12-30 12:36:46 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-12-30 12:36:46 +0100 |
| commit | 0ebfc53e58f6de4d7b3924758b28a76476c17602 (patch) | |
| tree | 1bc01bd82c637e06d9f2369e7c326d3742b040d9 | |
| parent | 1aec1ccf0bc4399d5770ed7d3b7bf7b6300c7368 (diff) | |
fixup.11.0-build-runs
| -rw-r--r-- | cscript | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 = [] |
