Fixed Sconstruct file so that blender.app Bundle builds correctly

with all needed files in Ressources dir (.Blanguages, .bfont.ttf, locale)
and with unwanted CVS dirs and DS_Store files removed.

binary is also stripped before inclusion in Bundle.
This commit is contained in:
Jean-Luc Peurière 2004-05-08 22:29:56 +00:00
parent 9c3607b1ff
commit a2d9c2b905

@ -1066,10 +1066,14 @@ if sys.platform == 'darwin':
sed s/DATE/`date +'%Y-%b-%d'`/ \
> $TARGET")
bundle.Command ('blender.app/Contents/MacOS/' + blender_app, blender_app,
'strip -u -r $SOURCE && ' + \
'cp $SOURCE $TARGET && ' + \
'cp bin/.blender/.bfont.ttf blender.app/Contents/Resources/ && ' + \
'cp bin/.blender/.Blanguages blender.app/Contents/Resources/ && ' + \
'cp -R bin/.blender/locale blender.app/Contents/Resources/ && ' + \
'chmod +x $TARGET && ' + \
'find $SOURCE -name CVS -prune -exec rm -rf {} \; && ' +
'find $SOURCE -name .DS_Store -exec rm -rf {} \;')
'find blender.app -name CVS -prune -exec rm -rf {} \; && ' +
'find blender.app -name .DS_Store -exec rm -rf {} \;')
elif sys.platform=='win32':
if user_options_dict['BUILD_BINARY']=='debug':
browser = Environment()