mirror of
https://github.com/proletarius101/com.bitwarden.desktop.git
synced 2024-10-22 20:51:50 +02:00
d2e85a37c7
Closes #14
52 lines
1.7 KiB
YAML
52 lines
1.7 KiB
YAML
app-id: com.bitwarden.desktop
|
|
base: org.electronjs.Electron2.BaseApp
|
|
base-version: '18.08'
|
|
runtime: org.freedesktop.Platform
|
|
runtime-version: '18.08'
|
|
sdk: org.freedesktop.Sdk
|
|
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.18.8/libsecret-0.18.8.tar.gz
|
|
sha256: 33ee5dfd3556931b81d47111890c8b9c51093b4ced18e0e87f51c1769e24d43c
|
|
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.15.2/Bitwarden-1.15.2-amd64.deb
|
|
sha256: 8ec42628a709ac436a1106d8b9cc04c882a4e1f2b3ccee64cb5f608ef184e47b
|
|
- 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 |