X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=appimage%2Fbuild_appimage.sh;h=5a971c7c336bcdfd9e29c8886176253f17d5ddf2;hb=HEAD;hp=ae54bb2a347b95132409ca8cbe05dbe6ae7abc04;hpb=2f8e2137a6b9cb436d9dd01c2cf28a8a772044c1;p=citadel.git diff --git a/appimage/build_appimage.sh b/appimage/build_appimage.sh deleted file mode 100755 index ae54bb2a3..000000000 --- a/appimage/build_appimage.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/bash - -export CITADEL_BUILD_DIR=/tmp/citadel-build-$$ -export WEBCIT_BUILD_DIR=/tmp/webcit-build-$$ -rm -fr $CITADEL_BUILD_DIR $WEBCIT_BUILD_DIR - -# libcitadel has to be built in a "real" library directory -pushd ../libcitadel || exit 1 -./bootstrap || exit 1 -./configure || exit 1 -make || exit 1 -make install || exit 1 -popd - -# Build the Citadel server -pushd ../citadel || exit 1 -./bootstrap || exit 1 -./configure --prefix=$CITADEL_BUILD_DIR || exit 1 -make || exit 1 -make install || exit 1 -popd - -# Build WebCit -pushd ../webcit || exit 1 -./bootstrap || exit 1 -./configure --prefix=$WEBCIT_BUILD_DIR || exit 1 -make || exit 1 -make install || exit 1 -popd - -# Clear out any old versions in the AppDir -rm -frv citadel.AppDir/usr -mkdir -p citadel.AppDir/usr/bin -mkdir -p citadel.AppDir/usr/lib - -# Copy over all the libraries we used -for bin in $CITADEL_BUILD_DIR/citserver $WEBCIT_BUILD_DIR/webcit -do - for x in `ldd $bin | awk ' { print $3 } ' | grep -v -e '^$' | grep -v 'libc.so' | grep -v 'libpthread.so' | grep -v 'libresolv.so'` - do - cp -v -L $x citadel.AppDir/usr/lib/ - done -done -ldconfig -v citadel.AppDir/usr/lib - -# Install the Citadel Server application tree -mkdir -p citadel.AppDir/usr/local/citadel -rsync -va $CITADEL_BUILD_DIR/ ./citadel.AppDir/usr/local/citadel/ - -# Install the WebCit application tree -mkdir -p citadel.AppDir/usr/local/webcit -rsync -va $WEBCIT_BUILD_DIR/ ./citadel.AppDir/usr/local/webcit/ - -# Remove the build directories -rm -fr $CITADEL_BUILD_DIR $WEBCIT_BUILD_DIR - -cc ctdlvisor.c -o citadel.AppDir/usr/bin/ctdlvisor || exit 1 - -cpu=`uname -p` -if [ $cpu == x86_64 ] ; then - ARCH=x86_64 appimagetool citadel.AppDir/ -else - ARCH=ARM appimagetool citadel.AppDir/ -fi