110 lines
3.6 KiB
YAML
110 lines
3.6 KiB
YAML
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
|
|
|
|
build-options:
|
|
env:
|
|
- GOBIN=/app/bin/.buildtools/golang/bin/
|
|
- GOROOT=/app/bin/.buildtools/golang/
|
|
|
|
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:
|
|
- mkdir -p /app/bin/.buildtools/golang/
|
|
- install -d /app/bin/.buildtools/golang/
|
|
- cp -rpv * /app/bin/.buildtools/golang/
|
|
- name: go-vendor
|
|
buildsystem: simple
|
|
build-commands:
|
|
- mkdir -p /app/bin/.buildtools/golang/src/github.com/quexten/goldwarden/vendor/
|
|
- cp -r ./* /app/bin/.buildtools/golang/src/github.com/quexten/goldwarden/vendor/
|
|
sources:
|
|
- type: dir
|
|
path: ../vendor/
|
|
- name: go-cli
|
|
buildsystem: simple
|
|
build-commands:
|
|
- mkdir -p /app/bin/.buildtools/golang/src/github.com/quexten/goldwarden/cli/
|
|
- cp -r ./* /app/bin/.buildtools/golang/src/github.com/quexten/goldwarden/cli/
|
|
sources:
|
|
- type: dir
|
|
path: ../cli/
|
|
- name: goldwarden-core-daemon
|
|
buildsystem: simple
|
|
build-commands:
|
|
- cp -r ./* /app/bin/.buildtools/golang/src/github.com/quexten/goldwarden/
|
|
- cd /app/bin/.buildtools/golang/src/github.com/quexten/goldwarden/ && /app/bin/.buildtools/golang/bin/go build -o goldwarden .
|
|
- cd /app/bin/.buildtools/golang/src/github.com/quexten/goldwarden/ && install -D goldwarden /app/bin/goldwarden
|
|
sources:
|
|
- 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: ./../ |