Oops, i've forgot that archive is preparing by scons, so stripping should
happpen before calling scons (hope, binaries wouldn't be overwritten by it)
This commit is contained in:
@@ -60,13 +60,11 @@ if builder.find('scons') != -1:
|
|||||||
config_fpath = os.path.join(config_dir, config)
|
config_fpath = os.path.join(config_dir, config)
|
||||||
scons_options.append('BF_CONFIG=' + config_fpath)
|
scons_options.append('BF_CONFIG=' + config_fpath)
|
||||||
|
|
||||||
|
blender = os.path.join(install_dir, 'blender')
|
||||||
|
blenderplayer = os.path.join(install_dir, 'blenderplayer')
|
||||||
|
subprocess.call(['strip', '--strip-all', blender, blenderplayer])
|
||||||
|
|
||||||
retcode = subprocess.call(['python', 'scons/scons.py'] + scons_options)
|
retcode = subprocess.call(['python', 'scons/scons.py'] + scons_options)
|
||||||
if retcode == 0:
|
|
||||||
blender = os.path.join(install_dir, 'blender')
|
|
||||||
blenderplayer = os.path.join(install_dir, 'blenderplayer')
|
|
||||||
|
|
||||||
subprocess.call(['strip', '--strip-all', blender, blenderplayer])
|
|
||||||
|
|
||||||
sys.exit(retcode)
|
sys.exit(retcode)
|
||||||
else:
|
else:
|
||||||
retcode = subprocess.call(['python', 'scons/scons.py'] + scons_options)
|
retcode = subprocess.call(['python', 'scons/scons.py'] + scons_options)
|
||||||
|
Reference in New Issue
Block a user