mirror of
https://github.com/proletarius101/com.bitwarden.desktop.git
synced 2024-10-22 20:51:50 +02:00
52 lines
1.7 KiB
YAML
52 lines
1.7 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:
|
|
- --disable-manpages
|
|
- --disable-gtk-doc
|
|
- --disable-static
|
|
- --disable-introspection
|
|
cleanup:
|
|
- /bin
|
|
- /include
|
|
- /lib/*.la
|
|
- /lib/pkgconfig
|
|
|
|
- name: bitwarden
|
|
sources:
|
|
- type: file
|
|
only-arches:
|
|
- x86_64
|
|
url: https://github.com/bitwarden/desktop/releases/download/v1.16.4/Bitwarden-1.16.4-amd64.deb
|
|
sha256: d500eaf4c2d4899cbfc360bf75fdcf3ad5ddcf6aa7b9491328bd1e8d659734bd
|
|
- type: file
|
|
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
|
|
- desktop-file-edit --set-key=Exec --set-value="${FLATPAK_DEST}/bin/bitwarden --no-sandbox" ${FLATPAK_DEST}/share/applications/bitwarden.desktop
|
|
- install -Dm644 -t /app/share/metainfo ${FLATPAK_ID}.appdata.xml |