Skip to content

Commit

Permalink
feat: Add desktop file for vtfview
Browse files Browse the repository at this point in the history
  • Loading branch information
JJL772 committed Aug 18, 2024
1 parent ffca4f9 commit 3674052
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,17 @@ install(TARGETS vtex2)

if (BUILD_GUI)
install(TARGETS vtfview)

install(
FILES ${CMAKE_BINARY_DIR}/vtfview.desktop
DESTINATION share/applications
)

install(
FILES res/icon.png
DESTINATION share/icons
RENAME vtfview.png
)
endif()

##############################
Expand All @@ -108,3 +119,5 @@ if (GITD_RESULT)
endif()

configure_file(src/common/vtex2_version.h.in src/common/vtex2_version.h)

configure_file(install/vtfview.desktop.in ${CMAKE_BINARY_DIR}/vtfview.desktop)
8 changes: 8 additions & 0 deletions install/vtfview.desktop.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Desktop Entry]
Version=${VTEX2_VERSION}
Name=vtfview
Comment=Viewer for Valve Texture Files (VTF)
Exec=${CMAKE_INSTALL_PREFIX}/bin/vtfview %f
Icon=vtfview.png
Type=Application
Categories=Utility;Development;

0 comments on commit 3674052

Please sign in to comment.