From c8bc89d0fa93937a6729a95fa04c3c011bc749d4 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Fri, 14 Feb 2020 00:32:08 +0100 Subject: try out flatpak nightly build --- .ci/install.sh | 6 ++++++ .ci/script.sh | 13 +++++++++++++ 2 files changed, 19 insertions(+) (limited to '.ci') diff --git a/.ci/install.sh b/.ci/install.sh index f700f303..d1bff54b 100755 --- a/.ci/install.sh +++ b/.ci/install.sh @@ -2,6 +2,12 @@ set -ex +if [ "$FLATPAK" ]; then + flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo + flatpak --noninteractive install --user flathub org.kde.Platform//5.14 + flatpak --noninteractive install --user flathub org.kde.Sdk//5.14 + exit +fi if [ "$TRAVIS_OS_NAME" = "osx" ]; then curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py sudo python get-pip.py diff --git a/.ci/script.sh b/.ci/script.sh index 0c6e3746..9438a652 100755 --- a/.ci/script.sh +++ b/.ci/script.sh @@ -2,6 +2,19 @@ set -ex +if [ "$FLATPAK" ]; then + mkdir -p build-flatpak + cd build-flatpak + + flatpak-builder --ccache --repo=repo --subject="Build of Nheko ${VERSION} `date`" app ../io.github.NhekoReborn.Nheko.json + flatpak build-bundle repo nheko-${VERSION}-${ARCH}.flatpak io.github.NhekoReborn.Nheko 0.7.0-dev + + mkdir ../artifacts + mv nheko-*.flatpak ../artifacts + + exit +fi + if [ "$TRAVIS_OS_NAME" = "linux" ]; then # make build use all available cores export CMAKE_BUILD_PARALLEL_LEVEL=$(cat /proc/cpuinfo | awk '/^processor/{print $3}' | wc -l) -- cgit 1.4.1