From 4d959f0bb2e308dcdc45843e03af7af5f6b460ca Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Mon, 31 Jul 2017 14:51:32 +0100 Subject: [PATCH] build: Add Dockerfile to build a flatpak --- .travis.yml | 4 ++-- build/ci/flatpak/Dockerfile | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 build/ci/flatpak/Dockerfile diff --git a/.travis.yml b/.travis.yml index 37df6a33..d1c43b0e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,8 +7,8 @@ os: - linux before_install: - - docker pull ubuntu:xenial + - docker pull fedora:26 script: - - docker build --file build/ci/Dockerfile --tag "sparkleshare:nightly" . + - docker build --file build/ci/flatpak/Dockerfile --tag "sparkleshare:nightly" . diff --git a/build/ci/flatpak/Dockerfile b/build/ci/flatpak/Dockerfile new file mode 100644 index 00000000..cf14edcb --- /dev/null +++ b/build/ci/flatpak/Dockerfile @@ -0,0 +1,13 @@ +FROM fedora:26 + +RUN dnf install flatpak-builder + +RUN flatpak remote-add --from gnome https://sdk.gnome.org/gnome.flatpakrepo +RUN flatpak install gnome org.gnome.Platform 3.24 +RUN flatpak install gnome org.gnome.Sdk 3.24 + +RUN git clone https://github.com/hbons/org.sparkleshare.SparkleShare +RUN cd org.sparkleshare.SparkleShare + +RUN flatpak-builder --repo=repo app org.sparkleshare.SparkleShare.json +