Skip to content

Commit

Permalink
desktop_entry: include high resolution icons
Browse files Browse the repository at this point in the history
wesnoth-optipng has been applied to the new images
  • Loading branch information
sevu authored and GregoryLundberg committed Nov 30, 2017
1 parent 4404739 commit 4c5528f
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Expand Up @@ -564,8 +564,8 @@ if(ENABLE_DESKTOP_ENTRY AND ENABLE_GAME)
# exec_program(sed ARGS "-i" "'s/^\(Name.*=.*\)$/\1TEST/g'" ${CMAKE_CURRENT_BINARY_DIR}/${BINARY_PREFIX}wesnoth${BINARY_SUFFIX}.desktop )
# install the generated .desktop file
# install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${BINARY_PREFIX}wesnoth${BINARY_SUFFIX}.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications )
install(FILES icons/wesnoth.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications )
install(FILES icons/wesnoth-icon.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/64x64/apps )
install(FILES packaging/wesnoth.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications )
install(DIRECTORY packaging/icons/hicolor DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons )
endif(ENABLE_DESKTOP_ENTRY AND ENABLE_GAME)


Expand Down
7 changes: 2 additions & 5 deletions SConstruct
Expand Up @@ -687,11 +687,8 @@ if env["nls"]:
env.InstallData("datadir", "wesnoth", "l10n-track")
InstallManpages(env, "wesnoth")
if have_client_prereqs and have_X and env["desktop_entry"]:
if sys.platform == "darwin":
env.InstallData("icondir", "wesnoth", "icons/wesnoth-icon-Mac.png")
else:
env.InstallData("icondir", "wesnoth", "icons/wesnoth-icon.png")
env.InstallData("desktopdir", "wesnoth", "icons/wesnoth.desktop")
env.InstallData("icondir", "wesnoth", "packaging/icons")
env.InstallData("desktopdir", "wesnoth", "packaging/wesnoth.desktop")

# Python tools
env.InstallData("bindir", "pytools", [os.path.join("data", "tools", tool) for tool in pythontools])
Expand Down
2 changes: 2 additions & 0 deletions changelog
Expand Up @@ -16,6 +16,8 @@ Version 1.13.10+dev:
CMake minimum requirements, which is now at 2.8.5. Most distributions
already use a CMake version above 3.0, so this would only affect users
of vintage CMake versions.
* higher resolutions of the application icon have been added and are now
stored in the hicolor icon theme's directory
* Language and i18n:
* Updated translations: Chinese (Simplified), Italian, Spanish
* Lua API:
Expand Down
Binary file removed icons/wesnoth-icon.png
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packaging/icons/hicolor/16x16/apps/wesnoth-icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.

0 comments on commit 4c5528f

Please sign in to comment.