new version element-web bitwarden-desktop

This commit is contained in:
thomas 2022-07-07 23:11:32 +02:00
parent 8d3ccf5fbd
commit 5012543e4c
2 changed files with 7 additions and 12 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=2022.6.0 VERSION=2022.6.1
[ -e ./lib/function.sh ] && source ./lib/function.sh [ -e ./lib/function.sh ] && source ./lib/function.sh
@ -12,7 +12,6 @@ DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=10 IMAGE_SIZE=10
STEP="envinit prebuild build makedeb" STEP="envinit prebuild build makedeb"
STEP="envinit prebuild"
envinit() { envinit() {
apt-get update apt-get update
@ -26,10 +25,8 @@ envinit() {
} }
prebuild(){ prebuild(){
[ -e /tmp/git ] && rm -fr /tmp/git [ -e /tmp/${APP} ] && rm -fr /tmp/${APP}
[ -e /tmp/${APP} ] || mkdir /tmp/${APP} git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/${APP}
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/git
cp -r /tmp/git/. /tmp/${APP}
} }
build() { build() {

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=1.10.15 VERSION=1.11.0
[ -e ./lib/function.sh ] && source ./lib/function.sh [ -e ./lib/function.sh ] && source ./lib/function.sh
@ -29,10 +29,8 @@ envinit() {
} }
prebuild(){ prebuild(){
[ -e /tmp/git ] && rm -fr /tmp/git [ -e /tmp/${APP} ] && rm -fr /tmp/${APP}
[ -e /tmp/${APP} ] || mkdir /tmp/${APP} git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/${APP}
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/git
cp -r /tmp/git/. /tmp/${APP}
} }
build() { build() {
@ -44,7 +42,7 @@ build() {
makedeb(){ makedeb(){
PATH_DEB=/tmp/src/rootfs PATH_DEB=/tmp/src/rootfs
tar -zxf /tmp/${APP}/dist/element-${GIT_VERSION}-dirty.tar.gz --strip-components=1 -C ${PATH_DEB}/usr/share/element-web/ tar -zxf /tmp/${APP}/dist/element-${GIT_VERSION}.tar.gz --strip-components=1 -C ${PATH_DEB}/usr/share/element-web/
cp /tmp/${APP}/config.sample.json ${PATH_DEB}/etc/element-web/config.json cp /tmp/${APP}/config.sample.json ${PATH_DEB}/etc/element-web/config.json
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist