File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 1+ # SPDX-License-Identifier: MIT-0
2+ [Desktop Entry]
3+ Type =Application
4+ Exec =unison-gui
5+ Name =Unison
6+ GenericName =File Synchronizer
7+ Comment =Multi-master File synchronization tool
8+ Terminal =false
9+ Icon =io.github.bcpierce00.unison
10+ StartupNotify =true
11+ Categories =Utility;
Original file line number Diff line number Diff line change @@ -576,6 +576,7 @@ let install () =
576576 let mandir = " MANDIR" < --? datarootdir ^ " /man" in
577577 let man1dir = " MAN1DIR" < --? mandir ^ " /man1" in
578578 let manext = " MANEXT" < --? " .1" in
579+ let desktopdir = " DESKTOPDIR" < --? datarootdir ^ " /applications" in
579580
580581 let install_if_exists dir name dest =
581582 if exists dir name then exec
@@ -592,6 +593,10 @@ let install () =
592593 exec [install; " -d" ; destdir ^ man1dir];
593594 exec [install_data; " man/unison.1" ; destdir ^ man1dir ^ " /unison" ^ manext]
594595 end ;
596+ if exists " src" " unison-gui" then begin
597+ exec [install; " -d" ; destdir ^ desktopdir];
598+ exec [install_data; " data/io.github.bcpierce00.unison.desktop" ; destdir ^ desktopdir ^ " /io.github.bcpierce00.unison.desktop" ]
599+ end ;
595600 if exists " src/uimac/build/Default" " Unison.app" then begin
596601 print_endline (" !!! The GUI for macOS has been built but will NOT be \
597602 installed automatically. You can find the built GUI package at " ^
You can’t perform that action at this time.
0 commit comments