Made NSIS script install manual and readme files.
This commit is contained in:
parent
83c70e3ce9
commit
8b5b55b275
2 changed files with 9 additions and 4 deletions
|
@ -399,7 +399,7 @@ bindir = env['bindir']
|
|||
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 @@ env.Alias('data-dist', data_tarball)
|
|||
# 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
|
||||
|
|
|
@ -134,9 +134,11 @@
|
|||
|
||||
Section "Battle for Wesnoth" BfWSection
|
||||
|
||||
SetOutPath "$INSTDIR"
|
||||
SetOutPath "$INSTDIR\manual"
|
||||
File /r /x .* doc\manual\*.html
|
||||
File /r /x .* doc\manual\styles
|
||||
File /r /x .* doc\manual\images
|
||||
|
||||
;ADD YOUR OWN FILES HERE...
|
||||
%NSIS_INSTALL_FILES
|
||||
|
||||
;Store installation folder
|
||||
|
@ -152,6 +154,7 @@ Section "Battle for Wesnoth" BfWSection
|
|||
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 @@ Section "Uninstall"
|
|||
|
||||
;ADD YOUR OWN FILES HERE...
|
||||
%NSIS_UNINSTALL_FILES
|
||||
RMDir /r "$INSTDIR\manual"
|
||||
|
||||
Delete "$INSTDIR\Uninstall.exe"
|
||||
|
||||
|
@ -193,6 +197,7 @@ Section "Uninstall"
|
|||
!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"
|
||||
|
|
Loading…
Add table
Reference in a new issue