mirror of
https://github.com/quexten/goldwarden.git
synced 2024-09-11 11:15:41 +03:00
90 lines
2.8 KiB
YAML
90 lines
2.8 KiB
YAML
id: com.quexten.Goldwarden
|
|
runtime: org.gnome.Platform
|
|
runtime-version: '45'
|
|
sdk: org.freedesktop.Sdk//23.08
|
|
sdk-extensions:
|
|
- org.freedesktop.Sdk.Extension.golang
|
|
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: golang
|
|
buildsystem: simple
|
|
sources:
|
|
- type: archive
|
|
only-arches:
|
|
- aarch64
|
|
url: https://go.dev/dl/go1.22.2.linux-arm64.tar.gz
|
|
sha256: 36e720b2d564980c162a48c7e97da2e407dfcc4239e1e58d98082dfa2486a0c1
|
|
x-checker-data:
|
|
type: anitya
|
|
project-id: 1227
|
|
stable-only: true
|
|
url-template: https://go.dev/dl/go$version.linux-arm64.tar.gz
|
|
- type: archive
|
|
only-arches:
|
|
- x86_64
|
|
url: https://go.dev/dl/go1.22.2.linux-amd64.tar.gz
|
|
sha256: 5901c52b7a78002aeff14a21f93e0f064f74ce1360fce51c6ee68cd471216a17
|
|
x-checker-data:
|
|
type: anitya
|
|
project-id: 1227
|
|
stable-only: true
|
|
url-template: https://go.dev/dl/go$version.linux-amd64.tar.gz
|
|
build-commands:
|
|
- install -d /usr/lib/sdk/golang
|
|
- cp -rpv * /usr/lib/sdk/golang/
|
|
- name: goldwarden-core-daemon
|
|
buildsystem: simple
|
|
build-commands:
|
|
- go build -o goldwarden ./main.go
|
|
- install -D goldwarden /app/bin/goldwarden
|
|
sources:
|
|
- type: dir
|
|
path: ../gui/
|
|
- type: file
|
|
path: ../main.go
|
|
- type: file
|
|
path: ../go.mod
|
|
- type: file
|
|
path: ../go.sum
|
|
- name: "blueprint-compiler"
|
|
buildsystem: meson
|
|
cleanup: ['*']
|
|
sources:
|
|
- type: git
|
|
url: https://gitlab.gnome.org/jwestman/blueprint-compiler
|
|
tag: v0.12.0
|
|
- ./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: ./../ |