forked from ahrm/sioyek
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_linux.sh
More file actions
executable file
·35 lines (31 loc) · 808 Bytes
/
Copy pathbuild_linux.sh
File metadata and controls
executable file
·35 lines (31 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env bash
set -e
# Compile mupdf
cd mupdf
make USE_SYSTEM_HARFBUZZ=yes -j$(nproc)
cd ..
# set QMAKE if not already defined
if [ -z "$QMAKE" ];
then
if [ -f "/usr/bin/qmake-qt6" ];
then
QMAKE="/usr/bin/qmake-qt6"
elif [ -f "/usr/bin/qmake" ];
then
QMAKE="/usr/bin/qmake"
else
QMAKE="qmake"
fi
fi
$QMAKE "CONFIG+=linux_app_image" pdf_viewer_build_config.pro
make -j$(nproc)
# Copy files in build/ subdirectory
rm -rf build 2> /dev/null
mkdir build
mv sioyek build/sioyek
cp pdf_viewer/prefs.config build/prefs.config
cp pdf_viewer/prefs_user.config build/prefs_user.config
cp pdf_viewer/keys.config build/keys.config
cp pdf_viewer/keys_user.config build/keys_user.config
cp -r pdf_viewer/shaders build/shaders
cp tutorial.pdf build/tutorial.pdf