From 179830dcb881b99e7f1a5b9527f7889602ee548e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 29 Oct 2019 21:58:17 +0100 Subject: Attempt to fix total breakage of OS X build. --- cscript | 2 +- platform/osx/make_dmg.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cscript b/cscript index 44e79f89a..3781725e4 100644 --- a/cscript +++ b/cscript @@ -641,7 +641,7 @@ def package(target, 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) + 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') diff --git a/platform/osx/make_dmg.sh b/platform/osx/make_dmg.sh index 5b9f187f1..21db560ba 100644 --- a/platform/osx/make_dmg.sh +++ b/platform/osx/make_dmg.sh @@ -1,8 +1,8 @@ #!/bin/bash # -# Syntax: make_dmg.sh +# Syntax: make_dmg.sh # -# 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. @@ -11,8 +11,8 @@ version=`git describe --tags --abbrev=0 | sed -e "s/v//"` # 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 -- cgit v1.2.3