From a6c03742251cd20598cdc861bb3b477545004d65 Mon Sep 17 00:00:00 2001 From: Marco Biasini <marco.biasini@unibas.ch> Date: Thu, 28 Oct 2010 15:37:17 +0200 Subject: [PATCH] add --dmg option to deploy script --- deployment/macos/deploy.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/deployment/macos/deploy.py b/deployment/macos/deploy.py index 60d45e647..dea9207ab 100644 --- a/deployment/macos/deploy.py +++ b/deployment/macos/deploy.py @@ -9,6 +9,7 @@ p.add_option('--bundle', action='store_true', default=False) p.add_option('--no_rpath', action='store_true', default=False) p.add_option('--macports_workaround', action='store_true', default=False) +p.add_option('--dmg', action='store_true', default=False) opts, args=p.parse_args() deps.make_standalone('../../stage', 'standalone', True, opts.no_rpath, @@ -18,6 +19,9 @@ if os.path.exists('DNG.app'): bundle.create_bundle('DNG', opts.bundle) if opts.bundle: shutil.copytree('../../examples', 'DNG.app/Contents/examples') - os.system('rm `find DNG.app/Contents/examples/ -name "*.pyc"`') - os.system('rm -rf DNG.app/Contents/examples/harmony') - os.system('rm -rf DNG.app/Contents/examples/dokk') \ No newline at end of file + os.system('rm `find DNG.app/Contents/examples/ -name "*.pyc"` 2> /dev/null') + os.system('rm -rf DNG.app/Contents/examples/demos/harmony') + os.system('rm -rf DNG.app/Contents/examples/demos/dokk') + if opts.dmg: + os.system('rm -rf openstructure.dmg') + os.system('hdiutil create -srcFolder DNG.app openstructure.dmg') \ No newline at end of file -- GitLab