Skip to content

Commit 88239f2

Browse files
committed
appimage: fixed script to run on VM.
1 parent 2357c59 commit 88239f2

2 files changed

Lines changed: 24 additions & 22 deletions

File tree

packaging/appimage/makeimage.sh

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
# MUST run from the directory where the build happens (distrohome/deb11 or ~/appimage-build on the VM
4+
35
# Note: this supposes that all used python version have been built
46
# from source and installed with make altinstall, and that a
57
# py3versions program is found in the PATH before the system one, and
@@ -13,27 +15,29 @@ fatal()
1315
exit 1
1416
}
1517

16-
DOCKHOME=/home/dockes/tmp/distrohomes/deb11
18+
BUILDTOP=`pwd`
1719
RCLDISTS=/home/dockes/projets/fulltext/web-recoll
1820
RCLSRC=/home/dockes/projets/fulltext/recoll
1921

2022
FROMGIT=0
2123
RECOLL_VERSION=1.43.14
2224

23-
UNRTF=$DOCKHOME/unrtf-0.21.11
24-
ANTIWORD=$DOCKHOME/antiword
25+
UNRTF=unrtf-0.21.11
26+
ANTIWORD=antiword
27+
28+
DEPLOYBINDIR=~/.local/bin
2529

26-
APPDIR=$DOCKHOME/AppDir/
27-
DEPLOYBINDIR=$DOCKHOME/.local/bin
28-
BUILDDIR=$DOCKHOME/build
30+
APPDIR=$BUILDTOP/AppDir/
31+
BUILDDIR=$BUILDTOP/recoll-build
2932
# NOTE: delete the builddir when changing versions. Not done automatically because complicated
3033
#rm -rf $BUILDDIR
3134

3235
if test $FROMGIT -ne 0; then
3336
RECOLL=/home/dockes/projets/fulltext/recoll/src
3437
else
35-
RECOLL=$DOCKHOME/recoll-${RECOLL_VERSION}
36-
test -d $RECOLL || (cd $DOCKHOME && tar xf $RCLDISTS/recoll-${RECOLL_VERSION}.tar.gz) || \
38+
# TBD: Replace this with curl or wget from the web site so we don't need a local copy on the VM ?
39+
RECOLL=$BUILDTOP/recoll-${RECOLL_VERSION}
40+
test -d $RECOLL || (cd $BUILDTOP && tar xf $RCLDISTS/recoll-${RECOLL_VERSION}.tar.gz) || \
3741
fatal source extraction
3842
fi
3943

@@ -42,15 +46,16 @@ auxprogs()
4246
# This works because:
4347
# - We change the apps to find their resources relative to the exec. Ok for antiword and unrtf
4448
# - We make sure that the PATH is ok for the handlers to find them in the mounted bin
45-
49+
cd || exit 1
50+
4651
echo "Building UNRTF"
47-
cd $UNRTF
52+
cd $BUILDTOP/$UNRTF || exit 1
4853
./configure --prefix=/usr
4954
make -j 4 || exit 1
5055
make install DESTDIR=$APPDIR || exit 1
5156

5257
echo "Building ANTIWORD"
53-
cd $ANTIWORD
58+
cd $BUILDTOP/$ANTIWORD
5459
make -f Makefile.Linux
5560
cp antiword $APPDIR/usr/bin/ || exit 1
5661
mkdir -p $APPDIR/usr/share/antiword || exit 1
@@ -76,14 +81,14 @@ DESTDIR=$APPDIR ninja -C ${BUILDDIR} install || exit 1
7681
echo;echo ALSO INSTALLING TO /usr FOR PYTHON BUILDS
7782
sudo ninja -C ${BUILDDIR} install || exit 1
7883

79-
echo;Copying Python binary extension shared objects
84+
echo Copying Python binary extension shared objects
8085
cp ${BUILDDIR}/python/recoll/*.so $APPDIR/usr/lib/python3/dist-packages/recoll || exit 1
8186
cp ${BUILDDIR}/python/pychm/*.so $APPDIR/usr/lib/python3/dist-packages/recollchm || exit 1
8287
cp ${BUILDDIR}/python/pyaspell/*.so $APPDIR/usr/lib/python3/dist-packages/ || exit 1
8388

8489
auxprogs
8590

86-
cd
91+
cd $BUILDTOP
8792
$DEPLOYBINDIR/linuxdeploy-x86_64.AppImage \
8893
--appdir $APPDIR \
8994
--custom-apprun=$RCLSRC/packaging/appimage/AppRun \

src/doc/man/recoll.conf.5

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,12 @@ the patterns will be considered for indexing. Can be redefined per subtree. Does
9696
directories.
9797
.TP
9898
.BI "noContentSuffixes = "string
99-
List of name endings (not necessarily dot-separated suffixes) for
100-
which we don't try MIME type identification, and don't uncompress or
101-
index content. Only the names will be indexed. This
102-
complements the now obsoleted recoll_noindex list from the mimemap file,
103-
which will go away in a future release (the move from mimemap to
104-
recoll.conf allows editing the list through the GUI). This is different
105-
from skippedNames because these are name ending matches only (not
106-
wildcard patterns), and the file name itself gets indexed normally. This
107-
can be redefined for subdirectories.
99+
List of name endings (not necessarily dot-separated suffixes) for which we only index the
100+
names ("Ignored endings" in the GUI preferences). Only the names will be indexed. This complements the now obsoleted recoll_noindex list from
101+
the mimemap file, which will go away in a future release (the move from mimemap to recoll.conf
102+
allows editing the list through the GUI). This is different from skippedNames because these are
103+
name ending matches only (not wildcard patterns), and the file name itself gets indexed
104+
normally. This can be redefined for subdirectories.
108105
.TP
109106
.BI "noContentSuffixes- = "string
110107
List of name endings to remove from the default noContentSuffixes

0 commit comments

Comments
 (0)