From: Bo Peng Date: Thu, 19 Apr 2007 21:17:45 +0000 (+0000) Subject: Scons: build installer only in release mode X-Git-Tag: 1.6.10~10200 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a01f198769b08756923ef4b01fe7f4ad4182fc1b;p=lyx.git Scons: build installer only in release mode git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17870 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/development/scons/SConstruct b/development/scons/SConstruct index b15ba7ab16..127b8402dc 100644 --- a/development/scons/SConstruct +++ b/development/scons/SConstruct @@ -2291,6 +2291,9 @@ if build_installer: if platform_name != 'win32': print 'installer target is only available for windows platform' 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: # create a builder to strip and install env['BUILDERS']['installer'] = Builder(generator=utils.env_nsis)