Commit 1c9d1adb authored by linkmauve's avatar linkmauve Committed by Gargaj
Browse files

Install a .desktop and icon files on Unix (#83)

* Install a .desktop and an icon on Unix

This has been tested on GNOME Shell 3.30.0.

* Rename the binary to lowercase
parent 7c927ba8
......@@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.0)
set(CMAKE_OSX_ARCHITECTURES x86_64)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
set(BZC_EXE_NAME "Bonzomatic")
set(BZC_EXE_NAME "bonzomatic")
set(VERSION_MAJOR "1")
set(VERSION_MINOR "0")
......@@ -502,4 +502,9 @@ if (UNIX AND (NOT APPLE))
install(FILES "${CMAKE_SOURCE_DIR}/external/bass/x86/libbass.so" DESTINATION lib)
endif ()
install(TARGETS ${BZC_EXE_NAME} RUNTIME DESTINATION bin)
install(FILES "${CMAKE_SOURCE_DIR}/data/unix/bonzomatic.desktop"
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/applications")
install(FILES "${CMAKE_SOURCE_DIR}/data/unix/icon.png"
RENAME "bonzomatic.png"
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/256x256/apps")
endif ()
[Desktop Entry]
Version=1.0
Icon=bonzomatic
Exec=bonzomatic
Terminal=false
Type=Application
Categories=Graphics;
Name=Bonzomatic
GenericName=Live shader editor
Comment=Live-coding tool where you write a 2D fragment shader while it is running in the background
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment