From a01f198769b08756923ef4b01fe7f4ad4182fc1b Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Thu, 19 Apr 2007 21:17:45 +0000 Subject: [PATCH] Scons: build installer only in release mode git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17870 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/scons/SConstruct | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.39.5