From c6c0257bbc0687d8f96e39943aed1f914d6f81f8 Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Sat, 4 May 2024 02:46:04 +0200 Subject: [PATCH] Fix flathub pipeline --- .github/com.quexten.Goldwarden.yml | 55 ++++++++++++++++++++++++++++++ .github/workflows/flatpak.yml | 2 +- 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 .github/com.quexten.Goldwarden.yml diff --git a/.github/com.quexten.Goldwarden.yml b/.github/com.quexten.Goldwarden.yml new file mode 100644 index 0000000..b177f29 --- /dev/null +++ b/.github/com.quexten.Goldwarden.yml @@ -0,0 +1,55 @@ +id: com.quexten.Goldwarden +runtime: org.gnome.Platform +runtime-version: '45' +sdk: org.gnome.Sdk +command: goldwarden_ui_main.py +finish-args: + # Allow network access for sync + - --share=network + + # GUI + - --share=ipc + - --socket=wayland + - --socket=fallback-x11 + - --device=dri + + # Lock on screensave + - --talk-name=org.gnome.ScreenSaver + - --talk-name=org.freedesktop.ScreenSaver + + # Lock on idle + - --talk-name=org.gnome.Mutter.IdleMonitor + + # pinentry & approval + - --talk-name=org.gnome.keyring.SystemPrompter + # biometric / user password auth + - --system-talk-name=org.freedesktop.PolicyKit1 +modules: + - name: "blueprint-compiler" + buildsystem: meson + cleanup: ['*'] + sources: + - type: git + url: https://gitlab.gnome.org/jwestman/blueprint-compiler + tag: v0.12.0 + - ./gui/python3-requirements.json + - name: goldwarden-python-ui + buildsystem: simple + build-commands: + - mkdir -p /app/bin + - cp -R ./gui/* /app/bin + - chmod +x /app/bin/goldwarden_ui_main.py + - install -D ./gui/com.quexten.Goldwarden.desktop /app/share/applications/com.quexten.Goldwarden.desktop + - install -D ./gui/goldwarden.svg /app/share/icons/hicolor/scalable/apps/com.quexten.Goldwarden.svg + - install -Dm644 ./gui/com.quexten.Goldwarden.metainfo.xml -t /app/share/metainfo/ + - blueprint-compiler batch-compile /app/bin/src/gui/.templates/ /app/bin/src/gui/ /app/bin/src/gui/*.blp + sources: + - type: dir + path: ./ + - name: goldwarden-core-daemon + buildsystem: simple + build-commands: + - install -D goldwarden /app/bin/goldwarden + sources: + - type: file + path: ./goldwarden \ No newline at end of file diff --git a/.github/workflows/flatpak.yml b/.github/workflows/flatpak.yml index 131d52d..05fdf3c 100644 --- a/.github/workflows/flatpak.yml +++ b/.github/workflows/flatpak.yml @@ -43,6 +43,6 @@ jobs: - uses: flatpak/flatpak-github-actions/flatpak-builder@v6 with: bundle: goldwarden.flatpak - manifest-path: com.quexten.Goldwarden.yml + manifest-path: .github/com.quexten.Goldwarden.yml cache-key: flatpak-builder-${{ github.sha }} arch: ${{ matrix.arch }}