Skip to content

Commit

Permalink
Add build instructions for portable linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrm committed Jul 22, 2021
1 parent 2719638 commit 5edcae8
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
21 changes: 19 additions & 2 deletions pdf_viewer/pdf_viewer_linux.pro
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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
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
1 change: 1 addition & 0 deletions pdf_viewer/resources/sioyek-icon-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions pdf_viewer/resources/sioyek.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Desktop Entry]
Type=Application
Name=Sioyek
Exec=sioyek
Icon=sioyek-icon-linux
Categories=Development;

0 comments on commit 5edcae8

Please sign in to comment.