From 1903c46c65ab72bdbb70cbd34e3e464c0ff09075 Mon Sep 17 00:00:00 2001 From: Robby Zampino Date: Thu, 5 Sep 2019 15:04:36 -0600 Subject: [PATCH] Updated CICD to export flatpak to file and make it available as a build artifact. --- .gitlab-ci.yml | 4 ++++ flatpak/flatpak_build.sh | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f10bdb1..078aa17 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,3 +7,7 @@ build_flatpak: script: - cd flatpak - ./flatpak_build.sh + artifacts: + name: "libremsonic-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA" + paths: + - flatpak/libremsonic.flatpak diff --git a/flatpak/flatpak_build.sh b/flatpak/flatpak_build.sh index f0c8166..0712eaf 100755 --- a/flatpak/flatpak_build.sh +++ b/flatpak/flatpak_build.sh @@ -5,4 +5,8 @@ sed -i "s/filename.endswith('gz')/filename.endswith('gz') or filename.endswith(' python3 ./flatpak-builder-tools/pip/flatpak-pip-generator --requirements-file=flatpak-requirements.txt --output pypi-dependencies -flatpak-builder flatpak_build_dir com.sumnerevans.libremsonic.json +mkdir /repo + +flatpak-builder --repo=/repo flatpak_build_dir com.sumnerevans.libremsonic.json + +flatpak build-bundle /repo libremsonic.flatpak com.sumnerevans.libremsonic