Commit 0e0c173b authored by cacahueto's avatar cacahueto Committed by Jonah Brüchert

Add Android build script

parent 7719519b
#!/usr/bin/env bash
# KDE Frameworks Version, either master or a version number
KAIDAN_SOURCES=$(dirname "$(readlink -f "${0}")")/..
CI_REPOSITORY_URL=${CI_REPOSITORY_URL:-$(git remote get-url origin)}
git submodule update --init
# make sure inkscape is installed
sudo apt update
sudo apt -y install inkscape optipng
# Build dependencies
GIT_EXTRA="--branch ${KF5_VERSION}" /opt/helpers/build-kde-dependencies --withProject kirigami
/opt/helpers/build-cmake qxmpp -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF
/opt/helpers/build-cmake zxing-cpp
# Trick the script to not clone kaidan once again
if ! [ -f "${KAIDAN_SOURCES}/kaidan/" ]; then
ln -s ${KAIDAN_SOURCES} ${PWD}/src/kaidan
# Build Kaidan
# pack apk
/opt/helpers/create-apk ${CI_PROJECT_NAME}
mv ${CI_PROJECT_DIR}/build/${CI_PROJECT_NAME}/kaidan_build_apk/build/outputs/apk/kaidan_build_apk-debug.apk ${CI_PROJECT_DIR}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment