scons wininst includes now plugins\include in the installer

This commit is contained in:
Nathan Letwory
2005-06-10 08:43:59 +00:00
parent 79ea5e921f
commit ac16f0092c
2 changed files with 17 additions and 0 deletions

View File

@@ -251,6 +251,9 @@ Section "Blender-VERSION (required)" SecCopyUI
SetOutPath $BLENDERHOME\.blender\scripts\bpydata\config SetOutPath $BLENDERHOME\.blender\scripts\bpydata\config
[SCRIPTDATACFGCONTS] [SCRIPTDATACFGCONTS]
SetOutPath $BLENDERHOME\plugins\include
[PLUGINCONTS]
; Language files ; Language files
[LANGUAGECONTS] [LANGUAGECONTS]
@@ -313,6 +316,8 @@ Section "Uninstall"
RMDir /r $INSTDIR\.blender\scripts\bpymodules RMDir /r $INSTDIR\.blender\scripts\bpymodules
RMDir /r $INSTDIR\.blender\scripts\bpydata RMDir /r $INSTDIR\.blender\scripts\bpydata
RMDir /r $INSTDIR\.blender\scripts\bpydata\config RMDir /r $INSTDIR\.blender\scripts\bpydata\config
RMDir /r $INSTDIR\plugins\include
RMDir /r $INSTDIR\plugins
RMDir $INSTDIR\.blender RMDir $INSTDIR\.blender
RMDir "$SMPROGRAMS\Blender Foundation\Blender" RMDir "$SMPROGRAMS\Blender Foundation\Blender"
RMDir "$SMPROGRAMS\Blender Foundation" RMDir "$SMPROGRAMS\Blender Foundation"

View File

@@ -95,6 +95,18 @@ def donsis(env, target, source):
cfgstring = string.join(cfglist, "\n ") cfgstring = string.join(cfglist, "\n ")
cfgstring += "\n\n" cfgstring += "\n\n"
nsis_cnt = string.replace(nsis_cnt, "[SCRIPTDATACFGCONTS]", cfgstring) nsis_cnt = string.replace(nsis_cnt, "[SCRIPTDATACFGCONTS]", cfgstring)
# do plugins\include
plugincludelist = []
plugincludepath = "%s%s" % (startdir, "\\dist\\plugins\\include")
plugincludedir = os.listdir(plugincludepath)
for plugincludeitem in plugincludedir:
plugincludefile = "%s\\%s" % (plugincludepath, plugincludeitem)
if os.path.isdir(plugincludefile) == 0:
plugincludelist.append("File %s" % plugincludefile)
plugincludestring = string.join(plugincludelist, "\n ")
plugincludestring += "\n\n"
nsis_cnt = string.replace(nsis_cnt, "[PLUGINCONTS]", plugincludestring)
# do dotblender # do dotblender
dotblendlist = [] dotblendlist = []