Author: loonycyborg
Date: Fri Sep 12 14:07:27 2008
New Revision: 29416

URL: http://svn.gna.org/viewcvs/wesnoth?rev=29416&view=rev
Log:
Made NSIS script install manual and readme files.

Modified:
    trunk/SConstruct
    trunk/packaging/windows/Wesnoth.nsi.in

Modified: trunk/SConstruct
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/SConstruct?rev=29416&r1=29415&r2=29416&view=diff
==============================================================================
--- trunk/SConstruct (original)
+++ trunk/SConstruct Fri Sep 12 14:07:27 2008
@@ -399,7 +399,7 @@
 pythonlib = env['python_site_packages_dir']
 datadir = env['datadir']
 docdir = env['docdir']
-installable_subs = Split('data fonts icons images sounds')
+installable_subs = Split('data fonts images sounds')
 if env['nls']:
     installable_subs.append("translations")
 if env['nls'] and env['PLATFORM'] != 'win32':
@@ -581,7 +581,7 @@
 # Windows installer
 #
 
-env.WindowsInstaller([wesnoth, wesnoth_editor, Dir(installable_subs)] + 
glob("*.dll"))
+env.WindowsInstaller([wesnoth, wesnoth_editor, Dir(installable_subs)] + 
glob("*.dll") + Split("README copyright COPYING"))
 
 #
 # Making Mac OS X application bundles

Modified: trunk/packaging/windows/Wesnoth.nsi.in
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/packaging/windows/Wesnoth.nsi.in?rev=29416&r1=29415&r2=29416&view=diff
==============================================================================
--- trunk/packaging/windows/Wesnoth.nsi.in (original)
+++ trunk/packaging/windows/Wesnoth.nsi.in Fri Sep 12 14:07:27 2008
@@ -134,9 +134,11 @@
 
 Section "Battle for Wesnoth" BfWSection
 
-  SetOutPath "$INSTDIR"
-  
-  ;ADD YOUR OWN FILES HERE...
+  SetOutPath "$INSTDIR\manual"
+  File /r /x .* doc\manual\*.html
+  File /r /x .* doc\manual\styles
+  File /r /x .* doc\manual\images
+  
   %NSIS_INSTALL_FILES
   
   ;Store installation folder
@@ -152,6 +154,7 @@
     CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Battle for Wesnoth.lnk" 
"$INSTDIR\wesnoth.exe"
     CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Map editor.lnk" 
"$INSTDIR\wesnoth_editor.exe"
     CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Multiplayer server.lnk" 
"$INSTDIR\wesnothd.exe"
+    CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Manual.lnk" 
"$INSTDIR\manual\manual.en.html"
     CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" 
"$INSTDIR\Uninstall.exe"
   
   !insertmacro MUI_STARTMENU_WRITE_END
@@ -185,6 +188,7 @@
 
   ;ADD YOUR OWN FILES HERE...
   %NSIS_UNINSTALL_FILES
+  RMDir /r "$INSTDIR\manual"
 
   Delete "$INSTDIR\Uninstall.exe"
 
@@ -193,6 +197,7 @@
   !insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
 
   Delete "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk"
+  Delete "$SMPROGRAMS\$StartMenuFolder\Manual.lnk"
   Delete "$SMPROGRAMS\$StartMenuFolder\Multiplayer server.lnk"
   Delete "$SMPROGRAMS\$StartMenuFolder\Map editor.lnk"
   Delete "$SMPROGRAMS\$StartMenuFolder\Battle for Wesnoth.lnk"


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to