# libcitadel has to be built in a "real" library directory
pushd ../libcitadel || exit 1
+make distclean 2>/dev/null
./bootstrap || exit 1
./configure || exit 1
make || exit 1
# Build the Citadel server
pushd ../citadel || exit 1
+make distclean 2>/dev/null
./bootstrap || exit 1
./configure --prefix=$CITADEL_BUILD_DIR || exit 1
make || exit 1
# Build WebCit
pushd ../webcit || exit 1
+make distclean 2>/dev/null
./bootstrap || exit 1
./configure --prefix=$WEBCIT_BUILD_DIR || exit 1
make || exit 1
cc ctdlvisor.c -o citadel.AppDir/usr/bin/ctdlvisor || exit 1
cpu=`uname -p`
+basefilename=citadel-`date +%s`
if [ $cpu == x86_64 ] ; then
- ARCH=x86_64 appimagetool citadel.AppDir/
+ ARCH=x86_64 appimagetool citadel.AppDir/ ${basefilename}-x64.appimage
else
- ARCH=ARM appimagetool citadel.AppDir/
+ ARCH=ARM appimagetool ${basefilename}.AppDir/ ${basefilename}-arm32.appimage
fi