Updated CICD to export flatpak to file and make it available as a build artifact.

This commit is contained in:
Robby Zampino
2019-09-05 15:04:36 -06:00
committed by Sumner Evans
parent af9c272dc0
commit 1903c46c65
2 changed files with 9 additions and 1 deletions

View File

@@ -7,3 +7,7 @@ build_flatpak:
script: script:
- cd flatpak - cd flatpak
- ./flatpak_build.sh - ./flatpak_build.sh
artifacts:
name: "libremsonic-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA"
paths:
- flatpak/libremsonic.flatpak

View File

@@ -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 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