Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
c24f241e
Commit
c24f241e
authored
Apr 30, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add bitwarden
parent
7263d396
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
0 deletions
+51
-0
bitwarden.sh
play.d/bitwarden.sh
+30
-0
bitwarden.sh
repack.d/bitwarden.sh
+21
-0
No files found.
play.d/bitwarden.sh
0 → 100755
View file @
c24f241e
#!/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
repack.d/bitwarden.sh
0 → 100755
View file @
c24f241e
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment