Skip to content

Commit

Permalink
* When you do a sudo make install we now install the binary and it's…
Browse files Browse the repository at this point in the history
… desktop file + the icon so it all falls into place for the user, and make it runnable directly from launcher

 * Update README to point out
  • Loading branch information
SneWs committed Jul 10, 2024
1 parent 2f28311 commit df4e9c7
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
10 changes: 9 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ target_link_libraries(tail-tray PRIVATE Qt${QT_VERSION_MAJOR}::Widgets)
# If you are developing for iOS or macOS you should consider setting an
# explicit, fixed bundle identifier manually though.
if(${QT_VERSION} VERSION_LESS 6.1.0)
set(BUNDLE_ID_OPTION MACOSX_BUNDLE_GUI_IDENTIFIER com.example.tail-tray)
set(BUNDLE_ID_OPTION MACOSX_BUNDLE_GUI_IDENTIFIER com.example.tail-tray)
endif()
set_target_properties(tail-tray PROPERTIES
${BUNDLE_ID_OPTION}
Expand All @@ -54,6 +54,14 @@ install(TARGETS tail-tray
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

install(FILES tail-tray.desktop
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications
)

install(FILES icons/tailscale.png
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/128x128/apps
)

if(QT_VERSION_MAJOR EQUAL 6)
qt_finalize_executable(tail-tray)
endif()
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ To do that, plese see the Getting started section below.
3. cd into the repo `cd tail-tray`
4. Make a build directory `mkdir build`
5. cd into the build directory `cd build`
6. Run `cmake ../`
6. Run `cmake ../`
7. Run `make`
8. Run `./tailscale-tray` and it should show up in your tray
8. Run `sudo make install`
9. It will now be installed to `/usr/local/bin/tail-tray` and can be started by running `tail-tray` in a terminal or by clicking the Tail Tray icon in the launcher.

### Participating & Filing bugs
* If you would like to participate in the development of this project, please feel free to fork the repo and submit a pull request.
Expand Down
Binary file added icons/tailscale.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions tail-tray.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Desktop Entry]
Name=Tail Tray
GenericName=Tail Tray
Comment=Tailscale Tray Application
Exec=/usr/local/bin/tail-tray
Icon=/usr/local/share/icons/hicolor/128x128/apps/tailscale.png
Type=Application
Categories=Qt;KDE;Utility;Networking;Internet;VPN;
StartupNotify=true
Terminal=false
NoDisplay=false

0 comments on commit df4e9c7

Please sign in to comment.