From 8d31298c71df875d88e9f22061645d54309875eb Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 29 Oct 2013 11:14:14 +0000 Subject: Try to allow OSX builds with any prefix. --- cscript | 2 +- platform/osx/make_dmg.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cscript b/cscript index 199066581..b6088e0cb 100644 --- a/cscript +++ b/cscript @@ -59,7 +59,7 @@ def package(target, version): return debs elif target.platform == 'osx': - target.command('bash platform/osx/make_dmg.sh') + target.command('bash platform/osx/make_dmg.sh %s' % target.work_dir_cscript()) return os.path.abspath(glob.glob('build/platform/osx/DCP-o-matic*.dmg')[0]) def make_pot(target): diff --git a/platform/osx/make_dmg.sh b/platform/osx/make_dmg.sh index ad53b8801..5554249f2 100644 --- a/platform/osx/make_dmg.sh +++ b/platform/osx/make_dmg.sh @@ -1,4 +1,8 @@ #!/bin/bash +# +# Syntax: make_dmg.sh +# +# e.g. make_dmg.sh /Users/carl/cdist set -e @@ -8,7 +12,7 @@ version=`cat wscript | egrep ^VERSION | awk '{print $3}' | sed -e "s/'//g"` DMG_SIZE=256 WORK=build/platform/osx ENV=/Users/carl/Environments/osx -ROOT=/Users/carl/cdist +ROOT=$1 appdir="DCP-o-matic.app" approot=$appdir/Contents -- cgit v1.2.3