Scons: build installer only in release mode

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17870 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2007-04-19 21:17:45 +00:00
parent ae9a7bef28
commit a01f198769

View File

@ -2291,6 +2291,9 @@ if build_installer:
if platform_name != 'win32': if platform_name != 'win32':
print 'installer target is only available for windows platform' print 'installer target is only available for windows platform'
Exit(1) Exit(1)
if mode != 'release':
print 'installer has to be built in release mode (use option mode=release)'
Exit(1)
if env.has_key('NSIS') and env['NSIS'] is not None: if env.has_key('NSIS') and env['NSIS'] is not None:
# create a builder to strip and install # create a builder to strip and install
env['BUILDERS']['installer'] = Builder(generator=utils.env_nsis) env['BUILDERS']['installer'] = Builder(generator=utils.env_nsis)