2018-08-12 15:10:40 +02:00
|
|
|
app-id: com.bitwarden.desktop
|
2018-07-14 10:53:07 +02:00
|
|
|
runtime: org.freedesktop.Platform
|
2019-09-27 10:03:01 +02:00
|
|
|
runtime-version: '19.08'
|
2018-07-14 10:53:07 +02:00
|
|
|
sdk: org.freedesktop.Sdk
|
2019-09-27 10:03:01 +02:00
|
|
|
base: org.electronjs.Electron2.BaseApp
|
|
|
|
base-version: '19.08'
|
2018-07-14 10:53:07 +02:00
|
|
|
command: bitwarden
|
|
|
|
separate-locales: false
|
|
|
|
finish-args:
|
|
|
|
- --share=ipc
|
|
|
|
- --socket=x11
|
|
|
|
- --share=network
|
2018-09-05 10:15:18 +02:00
|
|
|
- --talk-name=org.freedesktop.Notifications
|
2018-09-05 10:28:22 +02:00
|
|
|
- --talk-name=org.freedesktop.secrets
|
2019-08-15 02:12:44 +02:00
|
|
|
- --filesystem=xdg-download
|
2019-04-17 11:04:48 +02:00
|
|
|
rename-desktop-file: bitwarden.desktop
|
|
|
|
rename-icon: bitwarden
|
2018-07-14 10:53:07 +02:00
|
|
|
modules:
|
2019-04-17 11:04:48 +02:00
|
|
|
- name: libsecret
|
2018-07-14 10:53:07 +02:00
|
|
|
sources:
|
|
|
|
- type: archive
|
2019-09-27 10:33:28 +02:00
|
|
|
url: https://gitlab.gnome.org/GNOME/libsecret/-/archive/0.19.1/libsecret-0.19.1.tar.gz
|
|
|
|
sha256: 303c6e8cf3e12534e885b0682cd6130716c6834397b76d3829321b6d83b2389c
|
2018-07-14 10:53:07 +02:00
|
|
|
config-opts:
|
2019-09-27 10:56:06 +02:00
|
|
|
- '-Dmanpage=false'
|
|
|
|
- '-Dgtk_doc=false'
|
|
|
|
- '-Dvapi=false'
|
|
|
|
buildsystem: meson
|
2018-08-13 18:35:42 +02:00
|
|
|
|
2018-07-14 10:53:07 +02:00
|
|
|
- name: bitwarden
|
|
|
|
sources:
|
2018-08-28 12:25:40 +02:00
|
|
|
- type: file
|
2019-04-17 11:04:48 +02:00
|
|
|
only-arches:
|
|
|
|
- x86_64
|
2019-09-27 10:02:23 +02:00
|
|
|
url: https://github.com/bitwarden/desktop/releases/download/v1.16.4/Bitwarden-1.16.4-amd64.deb
|
|
|
|
sha256: d500eaf4c2d4899cbfc360bf75fdcf3ad5ddcf6aa7b9491328bd1e8d659734bd
|
2018-07-14 10:53:07 +02:00
|
|
|
- type: file
|
2019-04-17 11:04:48 +02:00
|
|
|
path: com.bitwarden.desktop.appdata.xml
|
|
|
|
buildsystem: simple
|
|
|
|
build-commands:
|
|
|
|
- ar -x Bitwarden-*.deb
|
|
|
|
- tar -xf data.tar.xz
|
|
|
|
- cp -r usr/* ${FLATPAK_DEST}
|
|
|
|
- mkdir -p ${FLATPAK_DEST}/bin
|
|
|
|
- cp -r opt/Bitwarden/* ${FLATPAK_DEST}/bin
|
2019-08-15 23:57:36 +02:00
|
|
|
- desktop-file-edit --set-key=Exec --set-value="${FLATPAK_DEST}/bin/bitwarden --no-sandbox" ${FLATPAK_DEST}/share/applications/bitwarden.desktop
|
2019-04-17 11:04:48 +02:00
|
|
|
- install -Dm644 -t /app/share/metainfo ${FLATPAK_ID}.appdata.xml
|