summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-10-09 23:47:29 +0200
committerCarl Hetherington <cth@carlh.net>2019-10-16 23:16:48 +0200
commit2c096eb293cf84044e3b2ea31ab0831921ec1848 (patch)
treef2a6baf791b23933b6bdc1f4e131c59495a47c2c /cscript
parent3f9b394d57e750624d361f5daae6db77079f862a (diff)
Allow thin builds (target name osx-64).
Diffstat (limited to 'cscript')
-rw-r--r--cscript7
1 files changed, 5 insertions, 2 deletions
diff --git a/cscript b/cscript
index da1c65645..9bd4ebc39 100644
--- a/cscript
+++ b/cscript
@@ -639,8 +639,11 @@ 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':
- target.command('bash platform/osx/make_dmg.sh %s' % target.directory)
+ elif target.platform == 'osx' and target.bits is None:
+ target.command('bash platform/osx/make_dmg.sh %s universal' % target.directory)
+ 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:
+ target.command('bash platform/osx/make_dmg.sh %s thin' % target.directory)
return [os.path.abspath(x) for x in glob.glob('build/platform/osx/DCP-o-matic*.dmg')]
elif target.platform == 'docker':
shutil.copyfile(target.deb, 'build/platform/docker')