New version authelia bitwarden-desktop element-web joplin-desktop vaultwarden vaultwarden-web
This commit is contained in:
parent
9359602185
commit
5ecefd0f87
22 changed files with 120 additions and 148 deletions
|
@ -1,56 +1,35 @@
|
|||
#!/bin/bash
|
||||
|
||||
VERSION=2022.6.2
|
||||
|
||||
[ -e ./lib/function.sh ] && source ./lib/function.sh
|
||||
|
||||
APP=vaultwarden-web
|
||||
VERSION=2.28.1
|
||||
GIT_VERSION=v$VERSION
|
||||
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)
|
||||
DEBIAN_VERSION_CODENAME=bullseye
|
||||
IMAGE_SIZE=
|
||||
DEPOT=https://github.com/bitwarden/web.git
|
||||
IMAGE_SIZE=10
|
||||
DEPOT=https://github.com/dani-garcia/bw_web_builds.git
|
||||
|
||||
STEP="envinit prebuild build makedeb"
|
||||
STEP="minimum_package envinit default_prebuild build makedeb"
|
||||
|
||||
envinit() {
|
||||
configure_depot_yarn
|
||||
configure_depot_nodejs
|
||||
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(){
|
||||
[ -e /tmp/${APP} ] && rm -fr /tmp/${APP}
|
||||
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/${APP}
|
||||
|
||||
cd /tmp/${APP}
|
||||
git submodule update --init --recursive
|
||||
cd ..
|
||||
|
||||
git clone https://github.com/dani-garcia/bw_web_builds.git
|
||||
cd bw_web_builds
|
||||
PATCH=$(git tag --sort=v:refname | tail -n1)
|
||||
git checkout ${PATCH}
|
||||
PATCH_FILE=$(ls patches/ | sort -V | tail -n 1)
|
||||
cp patches/${PATCH_FILE} ../web-vault/
|
||||
|
||||
/tmp/${APP}
|
||||
git apply ${PATCH_FILE}
|
||||
apt install -y --no-install-recommends build-essential python nodejs
|
||||
}
|
||||
|
||||
build() {
|
||||
cd /tmp/${APP}
|
||||
npm install
|
||||
npm run dist:oss:selfhost
|
||||
echo web-$GIT_VERSION | ./package_web_vault.sh
|
||||
}
|
||||
|
||||
makedeb(){
|
||||
PATH_DEB=/tmp/src/rootfs
|
||||
|
||||
cp -fr /tmp/${APP}/build/* ${PATH_DEB}/usr/share/vaultwarden-web
|
||||
cp -fr /tmp/${APP}/web-vault/apps/web/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