Add all icons with the AppImage
@ -57,7 +57,7 @@ file (COPY resources/image DESTINATION share/planetblupi)
|
|||||||
file (COPY resources/movie DESTINATION share/planetblupi)
|
file (COPY resources/movie DESTINATION share/planetblupi)
|
||||||
file (COPY resources/sound DESTINATION share/planetblupi)
|
file (COPY resources/sound DESTINATION share/planetblupi)
|
||||||
file (COPY resources/music 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
|
# Windows stuff
|
||||||
|
|
||||||
@ -160,7 +160,7 @@ install (DIRECTORY resources/image DESTINATION share/planetblupi)
|
|||||||
install (DIRECTORY resources/movie DESTINATION share/planetblupi)
|
install (DIRECTORY resources/movie DESTINATION share/planetblupi)
|
||||||
install (DIRECTORY resources/sound DESTINATION share/planetblupi)
|
install (DIRECTORY resources/sound DESTINATION share/planetblupi)
|
||||||
install (DIRECTORY resources/music 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
|
# Copy libwinpthread-1.dll which seems not be linkable statically
|
||||||
if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows" AND MINGW)
|
if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows" AND MINGW)
|
||||||
@ -178,7 +178,7 @@ if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
|
|||||||
if (USE_APPIMAGE)
|
if (USE_APPIMAGE)
|
||||||
include (LinuxAppImageBuild)
|
include (LinuxAppImageBuild)
|
||||||
set (CMAKE_PACKAGED_OUTPUT_PREFIX ${CMAKE_INSTALL_PREFIX})
|
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")
|
elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
|
||||||
set (CPACK_GENERATOR "NSIS64;ZIP")
|
set (CPACK_GENERATOR "NSIS64;ZIP")
|
||||||
set (CPACK_STRIP_FILES TRUE)
|
set (CPACK_STRIP_FILES TRUE)
|
||||||
|
@ -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_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" )
|
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 ( TOLOWER "${APPIMAGE_TITLE}" APPIMAGE_INTERNALNAME )
|
||||||
string ( MAKE_C_IDENTIFIER "${APPIMAGE_INTERNALNAME}" 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
|
# Icon file to be used for the AppImage, only one in this case, preferrably SVG
|
||||||
set ( APPIMAGE_ICON "${APPIMAGE_DEFAULT_ICON_FILE}" )
|
set ( APPIMAGE_ICON "${APPIMAGE_DEFAULT_ICON_FILE}" )
|
||||||
# We define a way to reference this icon based on where it is located
|
# 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
|
# This helps the window manager to recognize the program even if it has no embedded or loaded icon
|
||||||
set ( APPIMAGE_EXEC_WM ${TARGET} )
|
set ( APPIMAGE_EXEC_WM ${TARGET} )
|
||||||
|
Before Width: | Height: | Size: 615 B After Width: | Height: | Size: 615 B |
Before Width: | Height: | Size: 246 B After Width: | Height: | Size: 246 B |
Before Width: | Height: | Size: 803 B After Width: | Height: | Size: 803 B |
Before Width: | Height: | Size: 374 B After Width: | Height: | Size: 374 B |
Before Width: | Height: | Size: 598 B After Width: | Height: | Size: 598 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 702 B After Width: | Height: | Size: 702 B |
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB |
@ -405,7 +405,7 @@ static bool DoInit (Sint32 argc, char *argv[])
|
|||||||
return false;
|
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_SetWindowIcon (g_window, icon);
|
||||||
SDL_FreeSurface (icon);
|
SDL_FreeSurface (icon);
|
||||||
|
|
||||||
|