Fix flatpak

This commit is contained in:
Bernd Schoolmann 2024-05-03 22:16:48 +02:00
parent 8569fbc2da
commit cb6d3d5e91
No known key found for this signature in database
2 changed files with 9 additions and 1 deletions

View File

@ -25,6 +25,13 @@ finish-args:
# 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
@ -35,6 +42,7 @@ modules:
- 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: ./

View File

@ -2,7 +2,7 @@ import os
from gi.repository import Gtk
isflatpak = os.path.exists("/.flatpak-info")
pathprefix = "/app/bin/" if isflatpak else "./src/gui/"
pathprefix = "/app/bin/src/gui/" if isflatpak else "./src/gui/"
def load_template(path):
builder = Gtk.Builder()