Browse Source

update manifest

BRE-285-create-flatpak-distibution-method
Opeyemi 1 year ago
parent
commit
306415cbb9
  1. 66
      apps/desktop/flatpak/com.bitwarden.desktop.metainfo.xml
  2. 21
      apps/desktop/flatpak/com.bitwarden.desktop.yml

66
apps/desktop/flatpak/com.bitwarden.desktop.metainfo.xml

@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2018-2020 Flathub maintainers -->
<component type="desktop">
<id>com.bitwarden.desktop</id>
<launchable type="desktop-id">com.bitwarden.desktop</launchable>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0</project_license>
<name>Bitwarden</name>
<summary>A secure and free password manager for all of your devices</summary>
<description>
<p>
Bitwarden is the easiest and safest way to store all of your logins and
passwords while conveniently keeping them synced between all of your
devices.
</p>
<p>
Password theft is a serious problem. The websites and apps that you use
are under attack every day. Security breaches occur and your passwords
are stolen. When you reuse the same passwords across apps and websites
hackers can easily access your email, bank, and other important
accounts.
</p>
<p>
Security experts recommend that you use a different, randomly generated
password for every account that you create. But how do you manage all
those passwords? Bitwarden makes it easy for you to create, store, and
access your passwords.
</p>
<p>
Bitwarden stores all of your logins in an encrypted vault that syncs
across all of your devices. Since it's fully encrypted before it ever
leaves your device, only you have access to your data. Not even the
team at Bitwarden can read your data, even if we wanted to. Your data
is sealed with AES-256 bit encryption, salted hashing, and PBKDF2
SHA-256.
</p>
<p>
Bitwarden is 100% open source software. The source code for Bitwarden
is hosted on GitHub and everyone is free to review, audit, and
contribute to the Bitwarden codebase.
</p>
<p>
This wrapper is not verified by, affiliated with, or supported by Bitwarden Inc.
</p>
</description>
<categories>
<category>Utility</category>
</categories>
<screenshots>
<screenshot type="default">
<image>https://res.cloudinary.com/bw-com/image/upload/f_auto/v1/ctf/7rncvj1f8mw7/1PO0QhQSXq0swBoa9dxpsn/11b3504508449f6b03b63a12e5632b48/Bitwarden-multiple-devices.webp</image>
<caption>Bitwarden on multiple devices</caption>
</screenshot>
</screenshots>
<url type="homepage">https://www.bitwarden.com/</url>
<url type="bugtracker">https://github.com/bitwarden/clients/issues/</url>
<url type="help">https://bitwarden.com/help/</url>
<developer_name>Bitwarden Inc.</developer_name>
<update_contact>hello@bitwarden.com</update_contact>
<releases>
<release version="2024.10.1" date="2024-10-19">
<description></description>
</release>
</releases>
<content_rating type="oars-1.1"/>
</component>

21
apps/desktop/flatpak/com.bitwarden.desktop.yml

@ -1,16 +1,15 @@
app-id: com.bitwarden.desktop app-id: com.bitwarden.desktop
runtime: org.freedesktop.Platform runtime: org.freedesktop.Platform
runtime-version: '24.08' runtime-version: '23.08'
sdk: org.freedesktop.Sdk sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp base: org.electronjs.Electron2.BaseApp
base-version: '24.08' base-version: '23.08'
command: bitwarden command: bitwarden
finish-args: finish-args:
- --share=ipc - --share=ipc
- --share=network - --share=network
- --socket=fallback-x11 - --socket=fallback-x11
- --socket=wayland - --socket=wayland
- --ozone-platform-hint=auto
- --device=dri - --device=dri
- --talk-name=org.kde.StatusNotifierWatcher - --talk-name=org.kde.StatusNotifierWatcher
- --talk-name=org.freedesktop.Notifications - --talk-name=org.freedesktop.Notifications
@ -33,10 +32,6 @@ modules:
- rm -f control.tar.gz data.tar.xz debian-binary - rm -f control.tar.gz data.tar.xz debian-binary
- cp -r opt/* usr/* $FLATPAK_DEST - cp -r opt/* usr/* $FLATPAK_DEST
- rm -rf opt usr - rm -rf opt usr
- install bitwarden.sh $FLATPAK_DEST/bin/bitwarden
- install -D -m 644 -t $FLATPAK_DEST/share/metainfo $FLATPAK_ID.metainfo.xml
- desktop-file-edit --set-key=Exec --set-value="bitwarden %U" $FLATPAK_DEST/share/applications/bitwarden.desktop
- rm -rf "${FLATPAK_DEST}/share/icons/hicolor/1024x1024/"
# To allow separate locales # To allow separate locales
# https://searchfox.org/mozilla-central/rev/8a4f55bc09ffc5c25dcb4586c51ae4a9fee77b4c/taskcluster/docker/firefox-flatpak/runme.sh#131-133 # https://searchfox.org/mozilla-central/rev/8a4f55bc09ffc5c25dcb4586c51ae4a9fee77b4c/taskcluster/docker/firefox-flatpak/runme.sh#131-133
@ -47,17 +42,19 @@ modules:
install -Dm644 -t "${FLATPAK_DEST}/share/runtime/locale/${locale%%-*}/" "$lang" install -Dm644 -t "${FLATPAK_DEST}/share/runtime/locale/${locale%%-*}/" "$lang"
ln -sf "${FLATPAK_DEST}/share/runtime/locale/${locale%%-*}/$(basename $lang)" "${FLATPAK_DEST}/Bitwarden/locales/$(basename $lang)" ln -sf "${FLATPAK_DEST}/share/runtime/locale/${locale%%-*}/$(basename $lang)" "${FLATPAK_DEST}/Bitwarden/locales/$(basename $lang)"
done done
- desktop-file-edit --set-key=Exec --set-value="bitwarden %U" $FLATPAK_DEST/share/applications/bitwarden.desktop
- rm -rf "${FLATPAK_DEST}/share/icons/hicolor/1024x1024/"
- install -Dm 755 bitwarden.sh $FLATPAK_DEST/bin/bitwarden
- install -Dm 644 $FLATPAK_ID.metainfo.xml /app/share/metainfo/$FLATPAK_ID.metainfo.xml
sources: sources:
- type: file - type: file
only-arches: only-arches:
- x86_64 - x86_64
url: https://github.com/bitwarden/clients/releases/download/desktop-v2024.10.1/Bitwarden-2024.10.1-amd64.deb url: https://github.com/bitwarden/clients/releases/download/desktop-v2024.10.1/Bitwarden-2024.10.1-amd64.deb
sha256: 03cf0cf134bc9ac38b34ef48c45d018a6c13607cef2e26d088c111155a1a9179 sha256: 03cf0cf134bc9ac38b34ef48c45d018a6c13607cef2e26d088c111155a1a9179
x-checker-data:
type: anitya
project-id: 179174
url-template: https://github.com/bitwarden/clients/releases/download/desktop-v$version/Bitwarden-$version-amd64.deb
is-main-source: true
- type: script - type: script
dest-filename: bitwarden.sh dest-filename: bitwarden.sh
commands: commands:

Loading…
Cancel
Save