scons wininst includes now plugins\include in the installer
authorNathan Letwory <nathan@letworyinteractive.com>
Fri, 10 Jun 2005 08:43:59 +0000 (08:43 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Fri, 10 Jun 2005 08:43:59 +0000 (08:43 +0000)
release/windows/installer/00.sconsblender.nsi
tools/scons/bs/bs_nsis.py

index 4bbea68c62ffe2bf177b4f8372b75852ce46b5be..551eaad998dcc19dba10e2a09be9c3c9df1d2a3d 100644 (file)
@@ -251,6 +251,9 @@ Section "Blender-VERSION (required)" SecCopyUI
   SetOutPath $BLENDERHOME\.blender\scripts\bpydata\config
   [SCRIPTDATACFGCONTS]
   
+  SetOutPath $BLENDERHOME\plugins\include
+  [PLUGINCONTS]
+  
   ; Language files
   [LANGUAGECONTS]
   
@@ -313,6 +316,8 @@ Section "Uninstall"
   RMDir /r $INSTDIR\.blender\scripts\bpymodules
   RMDir /r $INSTDIR\.blender\scripts\bpydata
   RMDir /r $INSTDIR\.blender\scripts\bpydata\config
+  RMDir /r $INSTDIR\plugins\include
+  RMDir /r $INSTDIR\plugins
   RMDir $INSTDIR\.blender
   RMDir "$SMPROGRAMS\Blender Foundation\Blender"
   RMDir "$SMPROGRAMS\Blender Foundation"
index cdac85560eb589026888869a747222fb23737724..2c9c9ce6ca767100d2fa08bed917b3d331713a76 100644 (file)
@@ -95,6 +95,18 @@ def donsis(env, target, source):
        cfgstring = string.join(cfglist, "\n  ")
        cfgstring += "\n\n"
        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
        dotblendlist = []