Skip to content
Snippets Groups Projects
Commit a6c03742 authored by Marco Biasini's avatar Marco Biasini
Browse files

add --dmg option to deploy script

parent 8d7e8ce2
Branches
Tags
No related merge requests found
...@@ -9,6 +9,7 @@ p.add_option('--bundle', action='store_true', default=False) ...@@ -9,6 +9,7 @@ p.add_option('--bundle', action='store_true', default=False)
p.add_option('--no_rpath', action='store_true', p.add_option('--no_rpath', action='store_true',
default=False) default=False)
p.add_option('--macports_workaround', 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() opts, args=p.parse_args()
deps.make_standalone('../../stage', 'standalone', True, deps.make_standalone('../../stage', 'standalone', True,
opts.no_rpath, opts.no_rpath,
...@@ -18,6 +19,9 @@ if os.path.exists('DNG.app'): ...@@ -18,6 +19,9 @@ if os.path.exists('DNG.app'):
bundle.create_bundle('DNG', opts.bundle) bundle.create_bundle('DNG', opts.bundle)
if opts.bundle: if opts.bundle:
shutil.copytree('../../examples', 'DNG.app/Contents/examples') shutil.copytree('../../examples', 'DNG.app/Contents/examples')
os.system('rm `find DNG.app/Contents/examples/ -name "*.pyc"`') os.system('rm `find DNG.app/Contents/examples/ -name "*.pyc"` 2> /dev/null')
os.system('rm -rf DNG.app/Contents/examples/harmony') os.system('rm -rf DNG.app/Contents/examples/demos/harmony')
os.system('rm -rf DNG.app/Contents/examples/dokk') os.system('rm -rf DNG.app/Contents/examples/demos/dokk')
\ No newline at end of file if opts.dmg:
os.system('rm -rf openstructure.dmg')
os.system('hdiutil create -srcFolder DNG.app openstructure.dmg')
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment