make install || exit 5
popd
+# Build the text mode client
+pushd ../textclient || exit 22
+make distclean 2>/dev/null
+./bootstrap || exit 23
+./configure --prefix=`pwd` || exit 24
+make || exit 25
+popd
+
# Build the Citadel server
pushd ../citadel || exit 6
make distclean 2>/dev/null
mkdir -p citadel.AppDir/usr/lib
# Copy over all the libraries we used
-for bin in $CITADEL_BUILD_DIR/citserver $WEBCIT_BUILD_DIR/webcit $CITADEL_BUILD_DIR/ctdlmigrate `which gdb`
+for bin in \
+ $CITADEL_BUILD_DIR/citserver \
+ $WEBCIT_BUILD_DIR/webcit \
+ $CITADEL_BUILD_DIR/ctdlmigrate \
+ ../textclient/citadel \
+ `which gdb`
do
ldd $bin
done | sort | while read libname junk libpath
cp `which $bin` citadel.AppDir/usr/bin/ || exit 16
done
+# Copy over the client
+cp ../textclient/citadel citadel.AppDir/usr/bin/ || exit 26
+cp ../textclient/citadel.rc citadel.AppDir/ || exit 27
+
# Install the Citadel Server application tree
mkdir -p citadel.AppDir/usr/local/citadel || exit 17
rsync -va $CITADEL_BUILD_DIR/ ./citadel.AppDir/usr/local/citadel/ || exit 18
export PATH=$APPDIR/usr/bin:$PATH
exec $APPDIR/usr/local/citadel/citserver -x9 -h $CTDL_DIR
;;
+ connect)
+ export LD_LIBRARY_PATH=$APPDIR/usr/lib
+ export PATH=$APPDIR/usr/bin:$PATH
+ cd $APPDIR
+ exec citadel $*
+ ;;
*)
echo Unexpected command: ${1}
usage
# retrieved from https://raw.githubusercontent.com/AppImage/pkg2appimage/master/excludelist by ajc on 2021may10
-# I also removed libexpat from this list
+# I also removed libexpat and libz from this list
# This file lists libraries that we will assume to be present on the host system and hence
# should NOT be bundled inside AppImages. This is a working document; expect it to change
libusb-1.0.so.0
libuuid.so.1
# libwind.so.0 # Missing on openSUSE LEAP 42.0
-libz.so.1
+#libz.so.1 removed by ajc 2021jun09
# Potentially dangerous libraries
libgobject-2.0.so.0