From a2d9c2b905f1c2b80e7e643a15bcb2df7fcb70b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Luc=20Peuri=C3=A8re?= Date: Sat, 8 May 2004 22:29:56 +0000 Subject: [PATCH] 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. --- SConstruct | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 36eacaa9c29..43181e673f1 100644 --- a/SConstruct +++ b/SConstruct @@ -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()