forked from bartvdbraak/blender
Fix building a bundle for MacOS. (SCons related).
This is a dirty solution. Maybe when we get to understand SCons better, we can come up with a better one. For now, it works - and that's important!
This commit is contained in:
parent
a66108134c
commit
f78c0478f5
15
SConstruct
15
SConstruct
@ -324,18 +324,15 @@ if sys.platform == 'darwin':
|
||||
bundle = Environment ()
|
||||
blender_app = 'blender'
|
||||
bundle.Depends ('#/blender.app/Contents/MacOS/' + blender_app, blender_app)
|
||||
bundle.Command ('dummy1', '#/blender.app', 'rm -rf $SOURCE')
|
||||
bundle.Command ('dummy2', '#/source/darwin/blender.app', 'cp -R $SOURCE .')
|
||||
bundle.Command ('#/blender.app/Contents/Info.plist',
|
||||
'#/source/darwin/blender.app/Contents/Info.plist',
|
||||
"rm -rf blender.app && " + \
|
||||
"cp -R source/darwin/blender.app . && " +
|
||||
"cat $SOURCE | sed s/VERSION/`cat release/VERSION`/ | \
|
||||
sed s/DATE/`date +'%Y-%b-%d'`/ \
|
||||
> $TARGET")
|
||||
bundle.Command ('dummy3', blender_app,
|
||||
'cp $SOURCE blender.app/Contents/MacOS')
|
||||
bundle.Command ('dummy4', '#/blender.app/Contents/MacOS/' + blender_app,
|
||||
'chmod +x $SOURCE')
|
||||
bundle.Command ('dummy5', 'blender.app',
|
||||
'find $SOURCE -name CVS -prune -exec rm -rf {} \;')
|
||||
bundle.Command ('dummy6', 'blender.app',
|
||||
bundle.Command ('blender.app/Contents/MacOS/' + blender_app, blender_app,
|
||||
'cp $SOURCE $TARGET && ' + \
|
||||
'chmod +x $TARGET && ' + \
|
||||
'find $SOURCE -name CVS -prune -exec rm -rf {} \; && ' +
|
||||
'find $SOURCE -name .DS_Store -exec rm -rf {} \;')
|
||||
|
Loading…
Reference in New Issue
Block a user