1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Add all icons with the AppImage

This commit is contained in:
Mathieu Schroeter 2017-08-01 19:38:34 +02:00
parent 4bcfba75fd
commit c4d21aec31
11 changed files with 6 additions and 6 deletions

View File

@ -57,7 +57,7 @@ file (COPY resources/image DESTINATION share/planetblupi)
file (COPY resources/movie DESTINATION share/planetblupi)
file (COPY resources/sound DESTINATION share/planetblupi)
file (COPY resources/music DESTINATION share/planetblupi)
file (COPY resources/icon/blupi-256.png DESTINATION share/planetblupi)
file (COPY resources/icon/hicolor DESTINATION share/icons)
# Windows stuff
@ -160,7 +160,7 @@ install (DIRECTORY resources/image DESTINATION share/planetblupi)
install (DIRECTORY resources/movie DESTINATION share/planetblupi)
install (DIRECTORY resources/sound DESTINATION share/planetblupi)
install (DIRECTORY resources/music DESTINATION share/planetblupi)
install (FILES resources/icon/blupi-256.png DESTINATION share/planetblupi)
install (DIRECTORY resources/icon/hicolor DESTINATION share/icons)
# Copy libwinpthread-1.dll which seems not be linkable statically
if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows" AND MINGW)
@ -178,7 +178,7 @@ if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
if (USE_APPIMAGE)
include (LinuxAppImageBuild)
set (CMAKE_PACKAGED_OUTPUT_PREFIX ${CMAKE_INSTALL_PREFIX})
APPIMAGE_PACKAGE (planetblupi "planetblupi" "Planet Blupi" "${CMAKE_CURRENT_SOURCE_DIR}/resources/linux" "${CMAKE_BINARY_DIR}/share" "" "")
APPIMAGE_PACKAGE (planetblupi "planetblupi" "Planet Blupi" "${CMAKE_CURRENT_SOURCE_DIR}/resources/linux" "${CMAKE_BINARY_DIR}/share" "" "" "blupi")
elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
set (CPACK_GENERATOR "NSIS64;ZIP")
set (CPACK_STRIP_FILES TRUE)

View File

@ -6,7 +6,7 @@ set ( APPIMAGE_WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/deploy/linux-appimage" CAC
set ( APPIMAGE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/package/linux-appimage" CACHE PATH "AppImage output directory" )
set ( APPIMAGE_FOLLOW_STANDARD OFF CACHE BOOL "Whether generator should follow the spec" )
macro( APPIMAGE_PACKAGE TARGET APPIMAGE_TITLE APPIMAGE_DISPLAYNAME CONFIGDIR DATA LIBRARIES LIBRARY_FILES )
macro( APPIMAGE_PACKAGE TARGET APPIMAGE_TITLE APPIMAGE_DISPLAYNAME CONFIGDIR DATA LIBRARIES LIBRARY_FILES ICON_REF )
string ( TOLOWER "${APPIMAGE_TITLE}" APPIMAGE_INTERNALNAME )
string ( MAKE_C_IDENTIFIER "${APPIMAGE_INTERNALNAME}" APPIMAGE_INTERNALNAME )
@ -23,7 +23,7 @@ macro( APPIMAGE_PACKAGE TARGET APPIMAGE_TITLE APPIMAGE_DISPLAYNAME CONFIGDIR DAT
# Icon file to be used for the AppImage, only one in this case, preferrably SVG
set ( APPIMAGE_ICON "${APPIMAGE_DEFAULT_ICON_FILE}" )
# We define a way to reference this icon based on where it is located
set ( APPIMAGE_ICON_REF "${APPIMAGE_INTERNALNAME}" )
set ( APPIMAGE_ICON_REF "${ICON_REF}" )
# This helps the window manager to recognize the program even if it has no embedded or loaded icon
set ( APPIMAGE_EXEC_WM ${TARGET} )

View File

Before

Width:  |  Height:  |  Size: 615 B

After

Width:  |  Height:  |  Size: 615 B

View File

Before

Width:  |  Height:  |  Size: 246 B

After

Width:  |  Height:  |  Size: 246 B

View File

Before

Width:  |  Height:  |  Size: 803 B

After

Width:  |  Height:  |  Size: 803 B

View File

Before

Width:  |  Height:  |  Size: 374 B

After

Width:  |  Height:  |  Size: 374 B

View File

Before

Width:  |  Height:  |  Size: 598 B

After

Width:  |  Height:  |  Size: 598 B

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 702 B

After

Width:  |  Height:  |  Size: 702 B

View File

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -405,7 +405,7 @@ static bool DoInit (Sint32 argc, char *argv[])
return false;
}
auto icon = IMG_Load ((GetBaseDir () + "blupi-256.png").c_str ());
auto icon = IMG_Load ((GetShareDir () + "icons/hicolor/256x256/apps/blupi.png").c_str ());
SDL_SetWindowIcon (g_window, icon);
SDL_FreeSurface (icon);