Fix flatpak
This commit is contained in:
parent
8569fbc2da
commit
cb6d3d5e91
2 changed files with 9 additions and 1 deletions
|
|
@ -25,6 +25,13 @@ finish-args:
|
||||||
# biometric / user password auth
|
# biometric / user password auth
|
||||||
- --system-talk-name=org.freedesktop.PolicyKit1
|
- --system-talk-name=org.freedesktop.PolicyKit1
|
||||||
modules:
|
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
|
- ./gui/python3-requirements.json
|
||||||
- name: goldwarden-python-ui
|
- name: goldwarden-python-ui
|
||||||
buildsystem: simple
|
buildsystem: simple
|
||||||
|
|
@ -35,6 +42,7 @@ modules:
|
||||||
- install -D ./gui/com.quexten.Goldwarden.desktop /app/share/applications/com.quexten.Goldwarden.desktop
|
- 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 -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/
|
- 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:
|
sources:
|
||||||
- type: dir
|
- type: dir
|
||||||
path: ./
|
path: ./
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import os
|
||||||
from gi.repository import Gtk
|
from gi.repository import Gtk
|
||||||
|
|
||||||
isflatpak = os.path.exists("/.flatpak-info")
|
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):
|
def load_template(path):
|
||||||
builder = Gtk.Builder()
|
builder = Gtk.Builder()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue