Skip to content
Snippets Groups Projects
prepare.sh 808 B
Newer Older
akiraohgaki's avatar
akiraohgaki committed
#!/bin/bash

PROJDIR="$(cd "$(dirname "${0}")/../" && pwd)"

akiraohgaki's avatar
akiraohgaki committed
if [ ! -d "${PROJDIR}/lib/qtil" ]; then
    git clone https://github.com/akiraohgaki/qtil.git -b release-0.3.0 --single-branch --depth=1 "${PROJDIR}/lib/qtil"
akiraohgaki's avatar
akiraohgaki committed
fi
akiraohgaki's avatar
akiraohgaki committed

if [ ! -d "${PROJDIR}/lib/AppImageUpdate" ]; then
    git clone https://github.com/AppImage/AppImageUpdate.git -b continuous --single-branch --depth=1 "${PROJDIR}/lib/AppImageUpdate"
akiraohgaki's avatar
akiraohgaki committed
    git -C "${PROJDIR}/lib/AppImageUpdate" submodule update --init --recursive #--depth=1
akiraohgaki's avatar
akiraohgaki committed
fi
akiraohgaki's avatar
akiraohgaki committed

if [ ! -d "${PROJDIR}/lib/AppImageUpdate-prebuilt" ]; then
    mkdir "${PROJDIR}/lib/AppImageUpdate-prebuilt"
    cd "${PROJDIR}/lib/AppImageUpdate-prebuilt"
akiraohgaki's avatar
akiraohgaki committed
    cmake "${PROJDIR}/lib/AppImageUpdate" -DUSE_SYSTEM_CURL=ON -DBUILD_CPR_TESTS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo
akiraohgaki's avatar
akiraohgaki committed
    make libappimageupdate
fi