Fix Flatpak dev build
This commit is contained in:
parent
bbc2a0564f
commit
c257be4177
|
@ -6,3 +6,4 @@ flatpak-pip-generator
|
||||||
repo
|
repo
|
||||||
__debug*
|
__debug*
|
||||||
.templates
|
.templates
|
||||||
|
vendor
|
|
@ -1,9 +1,7 @@
|
||||||
id: com.quexten.Goldwarden
|
id: com.quexten.Goldwarden
|
||||||
runtime: org.gnome.Platform
|
runtime: org.gnome.Platform
|
||||||
runtime-version: '45'
|
runtime-version: '45'
|
||||||
sdk: org.freedesktop.Sdk//23.08
|
sdk: org.gnome.Sdk
|
||||||
sdk-extensions:
|
|
||||||
- org.freedesktop.Sdk.Extension.golang
|
|
||||||
command: goldwarden_ui_main.py
|
command: goldwarden_ui_main.py
|
||||||
finish-args:
|
finish-args:
|
||||||
# Allow network access for sync
|
# Allow network access for sync
|
||||||
|
@ -26,6 +24,12 @@ finish-args:
|
||||||
- --talk-name=org.gnome.keyring.SystemPrompter
|
- --talk-name=org.gnome.keyring.SystemPrompter
|
||||||
# biometric / user password auth
|
# biometric / user password auth
|
||||||
- --system-talk-name=org.freedesktop.PolicyKit1
|
- --system-talk-name=org.freedesktop.PolicyKit1
|
||||||
|
|
||||||
|
build-options:
|
||||||
|
env:
|
||||||
|
- GOBIN=/app/bin/.buildtools/golang/bin/
|
||||||
|
- GOROOT=/app/bin/.buildtools/golang/
|
||||||
|
|
||||||
modules:
|
modules:
|
||||||
- name: golang
|
- name: golang
|
||||||
buildsystem: simple
|
buildsystem: simple
|
||||||
|
@ -51,16 +55,32 @@ modules:
|
||||||
stable-only: true
|
stable-only: true
|
||||||
url-template: https://go.dev/dl/go$version.linux-amd64.tar.gz
|
url-template: https://go.dev/dl/go$version.linux-amd64.tar.gz
|
||||||
build-commands:
|
build-commands:
|
||||||
- install -d /usr/lib/sdk/golang
|
- mkdir -p /app/bin/.buildtools/golang/
|
||||||
- cp -rpv * /usr/lib/sdk/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
|
- name: goldwarden-core-daemon
|
||||||
buildsystem: simple
|
buildsystem: simple
|
||||||
build-commands:
|
build-commands:
|
||||||
- go build -o goldwarden ./main.go
|
- cp -r ./* /app/bin/.buildtools/golang/src/github.com/quexten/goldwarden/
|
||||||
- install -D goldwarden /app/bin/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:
|
sources:
|
||||||
- type: dir
|
|
||||||
path: ../gui/
|
|
||||||
- type: file
|
- type: file
|
||||||
path: ../main.go
|
path: ../main.go
|
||||||
- type: file
|
- type: file
|
||||||
|
|
|
@ -142,7 +142,7 @@ def autotype(text):
|
||||||
|
|
||||||
def version():
|
def version():
|
||||||
result = send_authenticated_command(f"version")
|
result = send_authenticated_command(f"version")
|
||||||
return result
|
return result.strip()
|
||||||
|
|
||||||
def is_daemon_running():
|
def is_daemon_running():
|
||||||
result = send_authenticated_command(f"vault status")
|
result = send_authenticated_command(f"vault status")
|
||||||
|
|
Loading…
Reference in New Issue