Trying to get Flatpak build working

This commit is contained in:
Sumner Evans
2020-09-22 10:46:31 -06:00
parent 0ea03f3f79
commit 2889c6bd7b
6 changed files with 29 additions and 6 deletions

22
.builds/build-flatpak.yml Normal file
View File

@@ -0,0 +1,22 @@
image: archlinux
packages:
- dbus
- gobject-introspection
- gtk3
- mpv
- python-cairo
- python-gobject
- python-poetry
- xorg-server-xvfb
sources:
- https://git.sr.ht/~sumner/sublime-music
environment:
REPO_NAME: sublime-music
# triggers:
# - action: email
# condition: failure
# to: ~sumner/sublime-music-devel@lists.sr.ht
tasks:
- build-flatpak: |
cd ${REPO_NAME}/flatpak
REPO=repo ./flatpak_build.sh

View File

@@ -38,10 +38,6 @@ tasks:
- build: |
python setup.py sdist
- build-flatpak: |
cd ${REPO_NAME}/flatpak
# REPO=repo ./flatpak_build.sh
- deploy-pypi: |
./cicd/run_if_tagged_with_version \
"twine upload -r testpypi dist/*" \

1
.gitignore vendored
View File

@@ -1,5 +1,6 @@
flatpak/flatpak_build_dir/
flatpak/sublime-music.flatpak
flatpak/repo
# Created by https://www.gitignore.io/api/python
# Edit at https://www.gitignore.io/?templates=python

View File

@@ -8,4 +8,4 @@ pip3 install poetry
mkdir -p ~/.config/pypoetry/
echo "[virtualenvs]" > ~/.config/pypoetry/config.toml
echo "in-project = true" >> ~/.config/pypoetry/config.toml
poetry install --dev
poetry install

View File

@@ -67,6 +67,9 @@
"build-commands": [
"pip3 install --prefix=/app ."
],
"build-options": {
"build-args": [ "--share=network" ]
},
"sources": [
{
"type": "dir",

View File

@@ -89,7 +89,8 @@
<update_contact>me_AT_sumnerevans.com</update_contact>
<releases>
<release version="0.10.2" date="2020-06-07"></release>
<release version="0.11.9" date="2020-09-22"></release>
<release version="0.10.3" date="2020-06-07"></release>
<release version="0.10.2" date="2020-06-07"></release>
</releases>
</component>