Commit c24f241e authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add bitwarden

parent 7263d396
#!/bin/sh
PKGNAME=bitwarden
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Bitwarden desktop from the official site"
. $(dirname $0)/common.sh
arch="$(epm print info --distro-arch)"
pkgtype="$(epm print info -p)"
case "$pkgtype" in
rpm|deb)
;;
*)
pkgtype="deb"
;;
esac
#https://github.com/bitwarden/clients/releases/download/desktop-v2023.4.0/Bitwarden-2023.4.0-amd64.deb
#https://github.com/bitwarden/clients/releases/download/desktop-v2023.4.0/Bitwarden-2023.4.0-x86_64.rpm
PKGURL=$(epm tool eget --list --latest https://github.com/bitwarden/clients/releases $(epm print constructname $PKGNAME "$VERSION*" $arch $pkgtype "-" "-")) || fatal "Can't get package URL"
# we have workaround for their postinstall script, so always repack rpm package
[ "$pkgtype" = "deb" ] || repack='--repack'
epm install $repack "$PKGURL" || exit
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=bitwarden
PRODUCTDIR=/opt/Bitwarden
# install all requires packages before packing (the list have got with rpmreqs package | xargs echo)
PREINSTALL_PACKAGES="at-spi2-atk coreutils findutils gawk glib2 libalsa libatk libat-spi2-core libcairo libdbus libdrm libexpat libgbm libgdk-pixbuf libgio libgtk+3 libnspr libnss libpango libsecret libX11 libxcb libXcomposite libXcursor libXdamage libXext libXfixes libXi libxkbfile libXrandr libXrender libXScrnSaver libXtst sed"
. $(dirname $0)/common.sh
add_bin_link_command
add_bin_link_command $PRODUCTCUR $PRODUCT
fix_chrome_sandbox
fix_desktop_file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment