summary refs log tree commit diff
path: root/.ci
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-02-14 00:32:08 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-02-14 00:46:06 +0100
commitc8bc89d0fa93937a6729a95fa04c3c011bc749d4 (patch)
treef776821112de5b170a3a397bbd2d94dd18b28f8a /.ci
parentMerge pull request #114 from adasauce/image-overlay-fix (diff)
downloadnheko-c8bc89d0fa93937a6729a95fa04c3c011bc749d4.tar.xz
try out flatpak nightly build
Diffstat (limited to '.ci')
-rwxr-xr-x.ci/install.sh6
-rwxr-xr-x.ci/script.sh13
2 files changed, 19 insertions, 0 deletions
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)