flatpak: add a builder to build nightly Devel flatpak

This commit is contained in:
Stéphane Cerveau 2022-01-14 16:32:09 +01:00
parent 2548040463
commit c7c8817f9d
4 changed files with 2123 additions and 19 deletions

View file

@ -89,30 +89,30 @@ clippy:
- cargo clippy --color=always --all-targets -- -D warnings - cargo clippy --color=always --all-targets -- -D warnings
flatpak: flatpak:
image: $GNOME_RUNTIME_IMAGE image: "registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:41"
stage: "test" stage: test
only: only:
- flatpak - flatpak
timeout: "120min" - tags
# Using gstreamer runner avoids an issue with 'bwrap: No permissions to creating new namespace' during flatpak builder
tags:
- gstreamer
variables: variables:
MANIFEST_PATH: "build-aux/org.karapulse.KarapulseDevel.json" BUNDLE: "gst-pipeline-studio-nightly.flatpak"
APP_ID: "org.karapulse.KarapulseDevel" MANIFEST_PATH: "build-aux/org.freedesktop.dabrain34.GstPipelineStudio.Devel.json"
BUNDLE: "karapulse-nightly.flatpak" FLATPAK_MODULE: "gst-pipeline-studio"
APP_ID: "org.freedesktop.dabrain34.GstPipelineStudio.Devel"
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
script: script:
- flatpak-builder app ${MANIFEST_PATH} - flatpak-builder app ${MANIFEST_PATH}
- flatpak build-export repo app - flatpak build-export repo app
- flatpak build-bundle repo ${BUNDLE} ${APP_ID} - flatpak build-bundle repo ${BUNDLE} ${APP_ID}
artifacts: artifacts:
name: "Flatpak artifacts"
expose_as: "Get Flatpak bundle here"
when: "always"
paths: paths:
- $BUNDLE - "${BUNDLE}"
expire_in: 1 days - ".flatpak-builder/build/${FLATPAK_MODULE}/_flatpak_build/meson-logs/meson-log.txt"
- ".flatpak-builder/build/${FLATPAK_MODULE}/_flatpak_build/meson-logs/testlog.txt"
cache: expire_in: 14 days
key: "flatpak"
paths:
- .flatpak-builder/downloads/
- .flatpak-builder/git/
- target/
- target_test/

View file

@ -0,0 +1,34 @@
{
"app-id": "org.freedesktop.dabrain34.GstPipelineStudio.Devel",
"runtime": "org.gnome.Platform",
"runtime-version": "41",
"sdk": "org.gnome.Sdk",
"sdk-extensions": ["org.freedesktop.Sdk.Extension.rust-stable"],
"command": "gst_pipeline_studio",
"finish-args": [
"--socket=fallback-x11",
"--socket=wayland",
"--device=dri",
"--env=G_MESSAGES_DEBUG=none",
"--env=RUST_BACKTRACE=1"
],
"build-options": {
"append-path": "/usr/lib/sdk/rust-stable/bin",
"build-args": ["--share=network"],
"test-args": ["--socket=x11", "--share=network"]
},
"modules": [
{
"name": "gst_pipeline_studio",
"buildsystem": "meson",
"run-tests": true,
"config-opts": ["-Dprofile=development"],
"sources": [
{
"type": "dir",
"path": "../"
}
]
}
]
}

View file

@ -1,5 +1,5 @@
install_data( install_data(
'@0@.svg'.format(base_id), '@0@.svg'.format(application_id),
install_dir: iconsdir / 'hicolor' / 'scalable' / 'apps' install_dir: iconsdir / 'hicolor' / 'scalable' / 'apps'
) )

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 116 KiB