mirror of
https://github.com/quexten/goldwarden.git
synced 2024-11-23 21:44:37 +03:00
Fix flatpak
This commit is contained in:
parent
8569fbc2da
commit
cb6d3d5e91
@ -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: ./
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user