git repos / SagoImageBrowser

commit 997c3caf

Poul Sander · 2026-05-31 13:07
997c3caf675980c96721b3cdc4eb00445a60ba13 patch · browse files
parent aae9a61b7266b4c0ca11a691d38afc893170d89c

Added "make install" and improved translation

Changed files

M CMakeLists.txt before
A extra/sago-image-browser.desktop
M translations/da.ts before
diff --git a/CMakeLists.txt b/CMakeLists.txt index afa86dc..e827d26 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -4,6 +4,8 @@ project(SagoImageBrowser LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_AUTOMOC ON)
+include(GNUInstallDirs)
+
find_package(Qt6 REQUIRED COMPONENTS Widgets LinguistTools)
find_package(PkgConfig REQUIRED)
pkg_check_modules(EXIV2 REQUIRED exiv2)
@@ -41,4 +43,8 @@ target_link_libraries(SagoImageBrowser PRIVATE Qt6::Widgets ${EXIV2_LIBRARIES})
qt_add_translations(SagoImageBrowser
TS_FILES translations/da.ts
- RESOURCE_PREFIX "/translations")
\ No newline at end of file
+ RESOURCE_PREFIX "/translations")
+
+install(TARGETS SagoImageBrowser RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
+install(FILES extra/sago-image-browser.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications)
+install(FILES extra/icons/sago_image_browser.svg DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps)
\ No newline at end of file
diff --git a/extra/sago-image-browser.desktop b/extra/sago-image-browser.desktop new file mode 100644 index 0000000..40b740b --- /dev/null +++ b/extra/sago-image-browser.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Name=Sago Image Browser
+Comment=A fast image browser
+Exec=SagoImageBrowser %f
+Icon=sago_image_browser
+Categories=Graphics;Viewer;
+MimeType=image/jpeg;image/png;image/gif;image/bmp;image/webp;image/tiff;image/svg+xml;
+Terminal=false
diff --git a/translations/da.ts b/translations/da.ts index e08d9a4..4fa7ba7 100644 --- a/translations/da.ts +++ b/translations/da.ts
@@ -29,7 +29,7 @@
</message>
<message>
<source>Roots</source>
- <translation>Rødder</translation>
+ <translation>Steder</translation>
</message>
<message>
<source>Folders</source>