diff --git a/pdf_viewer/pdf_viewer_linux.pro b/pdf_viewer/pdf_viewer_linux.pro index 8f98ab0d2..9f517db24 100644 --- a/pdf_viewer/pdf_viewer_linux.pro +++ b/pdf_viewer/pdf_viewer_linux.pro @@ -1,6 +1,6 @@ TEMPLATE = app -TARGET = pdf_viewer_project +TARGET = sioyek INCLUDEPATH += . # You can make your code fail to compile if you use deprecated APIs. @@ -51,4 +51,21 @@ SOURCES += book.cpp \ utils.cpp LIBS += -ldl -lmupdf -lz -lfreetype -lmujs -lgif -ljbig2dec -lopenjp2 -ljpeg -lharfbuzz -QMAKE_CXXFLAGS += -std=c++17 \ No newline at end of file +QMAKE_CXXFLAGS += -std=c++17 + +unix{ + isEmpty(PREFIX){ + PREFIX = /usr + } + target.path = $$PREFIX/bin + shortcutfiles.files = resources/sioyek.desktop + shortcutfiles.path = $$PREFIX/share/applications/ + data.files = resources/sioyek-icon-linux.png + data.path = $$PREFIX/share/pixmaps/ + INSTALLS += shortcutfiles + INSTALLS += data +} + +INSTALLS += target +DISTFILES += resources/sioyek.desktop\ + resources/sioyek-icon-linux.png diff --git a/pdf_viewer/resources/sioyek-icon-linux.png b/pdf_viewer/resources/sioyek-icon-linux.png new file mode 100644 index 000000000..ed80cbe62 --- /dev/null +++ b/pdf_viewer/resources/sioyek-icon-linux.png @@ -0,0 +1 @@ +usr/share/pixmaps/sioyek-icon-linux.png \ No newline at end of file diff --git a/pdf_viewer/resources/sioyek.desktop b/pdf_viewer/resources/sioyek.desktop new file mode 100644 index 000000000..d9491449f --- /dev/null +++ b/pdf_viewer/resources/sioyek.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Type=Application +Name=Sioyek +Exec=sioyek +Icon=sioyek-icon-linux +Categories=Development;