New version adguardhome authelia element-web gitea glpi joplin mautrix-whatsapp metabase vaultwarden-web vaultwarden wallabag
This commit is contained in:
parent
ebdea0727b
commit
ad8ebb543c
13 changed files with 83 additions and 78 deletions
|
@ -3,27 +3,30 @@
|
|||
[ -e ./lib/function.sh ] && source ./lib/function.sh
|
||||
|
||||
APP=vaultwarden-web
|
||||
VERSION=2.25.1
|
||||
VERSION=2.28.1
|
||||
GIT_VERSION=v$VERSION
|
||||
DEB_VERSION=$VERSION-2
|
||||
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)
|
||||
DEBIAN_VERSION_CODENAME=bullseye
|
||||
IMAGE_SIZE=
|
||||
DEPOT=https://github.com/bitwarden/web.git
|
||||
|
||||
STEP="envinit prebuild build makedeb"
|
||||
|
||||
envinit() {
|
||||
apt-get update
|
||||
apt-get dist-upgrade -y
|
||||
apt install -y --no-install-recommends wget fakeroot dpkg ca-certificates build-essential git python
|
||||
wget -qO - https://deb.nodesource.com/setup_16.x | bash
|
||||
apt-get update
|
||||
apt-get install -y nodejs
|
||||
apt clean
|
||||
}
|
||||
|
||||
prebuild(){
|
||||
GIT_VERSION=$1
|
||||
[ -e /tmp/${APP} ] && rm -fr /tmp/${APP}
|
||||
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/${APP}
|
||||
|
||||
GIT_VERSION=$1
|
||||
git clone --depth 1 -b ${GIT_VERSION} https://github.com/bitwarden/web.git /tmp/web-vault
|
||||
cd /tmp/web-vault
|
||||
cd /tmp/${APP}
|
||||
git submodule update --init --recursive
|
||||
cd ..
|
||||
|
||||
|
@ -34,22 +37,20 @@ prebuild(){
|
|||
PATCH_FILE=$(ls patches/ | sort -V | tail -n 1)
|
||||
cp patches/${PATCH_FILE} ../web-vault/
|
||||
|
||||
cd /tmp/web-vault
|
||||
/tmp/${APP}
|
||||
git apply ${PATCH_FILE}
|
||||
}
|
||||
|
||||
build() {
|
||||
cd /tmp/web-vault
|
||||
cd /tmp/${APP}
|
||||
npm install
|
||||
npm run dist:oss:selfhost
|
||||
}
|
||||
|
||||
makedeb(){
|
||||
GIT_VERSION=$1
|
||||
DEB_VERSION=$2
|
||||
PATH_DEB=/tmp/src/rootfs
|
||||
|
||||
cp -fr /tmp/web-vault/build/* ${PATH_DEB}/usr/share/vaultwarden-web
|
||||
cp -fr /tmp/${APP}/build/* ${PATH_DEB}/usr/share/vaultwarden-web
|
||||
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
|
||||
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue