com.bitwarden.desktop/com.bitwarden.desktop.yaml
Ghislain Antony Vaillant 7143707abd Update to version 1.16.6
2019-10-27 14:56:18 +01:00

53 lines
1.8 KiB
YAML

app-id: com.bitwarden.desktop
runtime: org.freedesktop.Platform
runtime-version: '19.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: '19.08'
command: bitwarden
separate-locales: false
finish-args:
- --share=ipc
- --socket=x11
- --share=network
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.freedesktop.secrets
- --filesystem=xdg-download
rename-desktop-file: bitwarden.desktop
rename-icon: bitwarden
modules:
- name: libsecret
sources:
- type: archive
url: https://gitlab.gnome.org/GNOME/libsecret/-/archive/0.19.1/libsecret-0.19.1.tar.gz
sha256: 303c6e8cf3e12534e885b0682cd6130716c6834397b76d3829321b6d83b2389c
config-opts:
- '-Dmanpage=false'
- '-Dgtk_doc=false'
- '-Dvapi=false'
buildsystem: meson
- name: bitwarden
sources:
- type: file
only-arches:
- x86_64
url: https://github.com/bitwarden/desktop/releases/download/v1.16.6/Bitwarden-1.16.6-amd64.deb
sha256: 528200af3a509e87c61ed1a100401ac714729ae6061e0bad404c52f948c5901c
- type: script
dest-filename: bitwarden.sh
commands:
- 'exec env TMPDIR=$XDG_CACHE_HOME /app/Bitwarden/bitwarden --no-sandbox "$@"'
- type: file
path: com.bitwarden.desktop.appdata.xml
buildsystem: simple
build-commands:
- 'ar -x Bitwarden*.deb'
- 'rm -f Bitwarden*.deb'
- 'tar -xf data.tar.xz'
- 'rm -f control.tar.gz data.tar.xz debian-binary'
- 'cp -r opt/* usr/* $FLATPAK_DEST'
- 'rm -rf opt usr'
- 'install bitwarden.sh $FLATPAK_DEST/bin/bitwarden'
- 'install -D -m 644 -t $FLATPAK_DEST/share/metainfo $FLATPAK_ID.appdata.xml'
- 'desktop-file-edit --set-key=Exec --set-value="bitwarden %U" $FLATPAK_DEST/share/applications/bitwarden.desktop'