update version

This commit is contained in:
thomas 2022-09-21 01:59:25 +02:00
parent 0ec450ed04
commit 249a7e28e1
8 changed files with 26 additions and 11 deletions

View file

@ -1,19 +1,25 @@
#!/bin/bash
VERSION=2022.9.0
VERSION=2022.9.1
APP=bitwarden-desktop
DEPOT=https://github.com/bitwarden/clients.git
GIT_VERSION=desktop-v${VERSION}
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=8
PACKAGE_DEPENDENCY="pkg-config libsecret-1-dev yarn nodejs"
PACKAGE_DEPENDENCY="pkg-config libsecret-1-dev yarn nodejs build-essential libglib2.0-dev"
STEP="base_package_upgrade configure_depot_yarn configure_depot_nodejs install_package_dependency get_git_source build makedeb"
STEP="base_package_upgrade configure_depot_yarn configure_depot_nodejs install_package_dependency install_rust get_git_source build makedeb"
build() {
source ~/.cargo/env
export PKG_CONFIG_ALL_STATIC=1
export PKG_CONFIG_ALLOW_CROSS=1
rustup target add x86_64-unknown-linux-musl
cd /tmp/${APP}
npm ci
cd /tmp/${APP}/apps/desktop/desktop_native/
npm run build -- --target x86_64-unknown-linux-musl
cd /tmp/${APP}/apps/desktop
PATH=$PATH:/tmp/${APP}/node_modules/.bin/
npm run clean:dist
@ -21,6 +27,8 @@ build() {
electron-builder --linux dir --x64 -p never
}
makedeb(){
PATH_DEB=/tmp/src/rootfs