bug #1218 - build NSIS.exe for dist-zip
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7113 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
818b359d19
commit
13fe58949c
1 changed files with 11 additions and 0 deletions
11
SConstruct
11
SConstruct
|
@ -548,6 +548,17 @@ Export('plugin_env plugin_uenv')
|
|||
####### Distribution ###
|
||||
######################################################################
|
||||
|
||||
if defenv['PLATFORM'] == 'win32':
|
||||
def build_nsis_menu_for_zip(target, source, env):
|
||||
cmdline = FindMakeNSIS(env, str(env['ZIPDISTDIR']))
|
||||
cmd = env.Command(None, source, cmdline + ' $SOURCE /X"OutFile %s"' % (target[0].abspath, ))
|
||||
AlwaysBuild(cmd)
|
||||
|
||||
nsis_menu_target = defenv.Command(os.path.join('$ZIPDISTDIR', 'NSIS.exe'),
|
||||
os.path.join('$ZIPDISTDIR', 'Examples', 'NSISMenu.nsi'),
|
||||
build_nsis_menu_for_zip)
|
||||
defenv.Sign(nsis_menu_target)
|
||||
|
||||
dist_zip = 'nsis-${VERSION}${DISTSUFFIX}.zip'
|
||||
zip_target = defenv.Zip(dist_zip, '$ZIPDISTDIR')
|
||||
defenv.Alias('dist-zip', zip_target)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue