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)
+ target.command('bash platform/osx/make_dmg.sh %s %s' % (target.environment_prefix, 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')
#!/bin/bash
#
-# Syntax: make_dmg.sh <builddir>
+# Syntax: make_dmg.sh <environment> <builddir>
#
-# e.g. make_dmg.sh /Users/carl/cdist
+# e.g. make_dmg.sh /Users/carl/osx-environment /Users/carl/cdist
# Don't set -e here as egrep (used a few times) returns 1 if no matches
# were found.
# DMG size in megabytes
DMG_SIZE=256
-ENV=/Users/carl/Environments/dcpomatic
-ROOT=$1
+ENV=$1
+ROOT=$2
# This is our work area for making up the .dmgs
mkdir -p build/platform/osx