From 22bf37caec833bf38387a3a9f2d42bf3ea9bb3f4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 4 Jan 2012 21:37:48 +0300 Subject: Add shortcut to start client in testing mode. --- CMakeLists.txt | 1 + Makefile.am | 3 ++- manaplustest.desktop | 17 +++++++++++++++++ packaging/windows/setup.nsi | 5 +++++ 4 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 manaplustest.desktop diff --git a/CMakeLists.txt b/CMakeLists.txt index 74bd0169b..3259f04d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,6 +55,7 @@ ENDIF() If(UNIX) INSTALL(FILES manaplus.desktop DESTINATION share/applications) + INSTALL(FILES manaplustest.desktop DESTINATION share/applications) ENDIF() SET(CPACK_PACKAGE_NAME "manaplus") diff --git a/Makefile.am b/Makefile.am index 6ef412c71..917a92036 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,7 +3,8 @@ SUBDIRS = data docs po src desktopdir = $(datarootdir)/applications -desktop_DATA = manaplus.desktop +desktop_DATA = manaplus.desktop \ + manaplustest.desktop # Extra files to include EXTRA_DIST = $(desktop_DATA) \ diff --git a/manaplustest.desktop b/manaplustest.desktop new file mode 100644 index 000000000..d8cdc8e54 --- /dev/null +++ b/manaplustest.desktop @@ -0,0 +1,17 @@ + +[Desktop Entry] +Version=1.0 +Name=ManaPlus (Tests) +Comment=A 2D MMORPG client +Comment[fr]=Un jeu en ligne dans un univers fantastique +Comment[de]=ein Online Fantasy Spiel +Comment[it]=Un gioco fantasy online +Comment[nl]=Een online role playing game +Comment[sv]=Ett fantasyrollspel online +Comment[ru]=Клиент к 2D MMORPG игре +Exec=manaplus --tests +StartupNotify=false +Terminal=false +Type=Application +Icon=manaplus +Categories=Game;AdventureGame; diff --git a/packaging/windows/setup.nsi b/packaging/windows/setup.nsi index 9767cf685..c3b34bc4c 100644 --- a/packaging/windows/setup.nsi +++ b/packaging/windows/setup.nsi @@ -331,7 +331,9 @@ Section "Create Shortcuts" SecShortcuts CreateShortCut "$SMPROGRAMS\Mana\ManaPlus.lnk" "$INSTDIR\manaplus.exe" CreateShortCut "$SMPROGRAMS\Mana\ManaPlus (no opengl).lnk" "$INSTDIR\manaplus.exe" --no-opengl CreateShortCut "$SMPROGRAMS\Mana\ManaPlus (safemode).lnk" "$INSTDIR\manaplus.exe" --safemode + CreateShortCut "$SMPROGRAMS\Mana\ManaPlus (tests).lnk" "$INSTDIR\manaplus.exe" --tests CreateShortCut "$DESKTOP\ManaPlus.lnk" "$INSTDIR\manaplus.exe" + CreateShortCut "$DESKTOP\ManaPlus (tests).lnk" "$INSTDIR\manaplus.exe" --tests ${registerExtension} "$INSTDIR\manaplus.exe" ".manaplus" "ManaPlus brandings" SectionEnd @@ -398,8 +400,11 @@ Section Uninstall Delete "$SMPROGRAMS\Mana\Uninstall.lnk" Delete "$DESKTOP\ManaPlus.lnk" + Delete "$DESKTOP\ManaPlus (tests).lnk" Delete "$SMPROGRAMS\Mana\ManaPlus.lnk" Delete "$SMPROGRAMS\Mana\ManaPlus (no opengl).lnk" + Delete "$SMPROGRAMS\Mana\ManaPlus (safemode).lnk" + Delete "$SMPROGRAMS\Mana\ManaPlus (tests).lnk" Delete "$SMPROGRAMS\Mana\Website.lnk" Delete "$SMPROGRAMS\Mana\Readme.lnk" Delete "$SMPROGRAMS\Mana\FAQ.lnk" -- cgit v1.2.3-70-g09d2