Add wallabag

This commit is contained in:
thomas 2022-02-21 22:18:59 +01:00
parent dd50775655
commit 297a9d686c
10 changed files with 131 additions and 108 deletions

View file

@ -3,22 +3,18 @@
STEP="envinit prebuild build makedeb"
envinit() {
apt install -y --no-install-recommends build-essential git python wget ca-certificates
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
#wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
#echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
apt-get update
#apt-get install -y yarn nodejs
apt-get install -y nodejs
}
prebuild(){
VERSION=$1
GIT_VERSION=$1
cd /tmp
git clone https://github.com/bitwarden/web.git web-vault
GIT_VERSION=$1
git clone --depth 1 -b ${GIT_VERSION} https://github.com/bitwarden/web.git /tmp/web-vault
cd /tmp/web-vault
git checkout ${VERSION}
git submodule update --init --recursive
cd ..
@ -26,10 +22,11 @@ prebuild(){
cd bw_web_builds
PATCH=$(git tag --sort=v:refname | tail -n1)
git checkout ${PATCH}
cp patches/${PATCH}.patch ../web-vault/
PATCH_FILE=$(ls patches/ | sort -V | tail -n 1)
cp patches/${PATCH_FILE} ../web-vault/
cd /tmp/web-vault
git apply ${PATCH}.patch
git apply ${PATCH_FILE}
}
build() {