Name the desktop binary photog

The CMake target stays 'uploader' but the output binary is now 'photog',
matching the package and app, so 'nix run' and the desktop entry resolve
it (nix run looked for bin/photog and failed on bin/uploader). Also set
meta.mainProgram.
This commit is contained in:
2026-09-26 10:51:39 +02:00
parent 17222f7120
commit 91fbf4f93b
3 changed files with 6 additions and 1 deletions
+4
View File
@@ -26,6 +26,10 @@ target_link_libraries(uploader PRIVATE
Qt6Keychain::Qt6Keychain
)
# The binary is "photog" (matching the app + package), so `nix run` and the
# desktop entry find it; the CMake target stays "uploader".
set_target_properties(uploader PROPERTIES OUTPUT_NAME photog)
# Installation — the binary, a desktop entry, and the app icon in the hicolor
# theme, so `nix profile install ./desktop` puts "Photog" in the app menu.
include(GNUInstallDirs)