vaultwarden-web/scripts/package_web_vault.sh
BlackDex 6529f1dab0
Update web-vault to v2022.05.0 and misc changes
- Updated web-vault to v2022.05.0
- Made several changes to the build scripts for ease of building/patching etc...
  You can now run `make checkout` to pull/update the repo to the wanted version
  There is also a `make patch-web-vault` to patch the repo
  A `make generate-patch` to create a patch file from the current changes
  And many more changes
2022-06-02 22:10:28 +02:00

32 lines
954 B
Bash
Executable file

#!/usr/bin/env bash
set -o pipefail -o errexit
BASEDIR=$(dirname "$(readlink -f "$0")")
handle_error() {
read -n1 -r -p "FAILED: line $1, exit code $2. Press any key to exit..." _
exit 1
}
trap 'handle_error $LINENO $?' ERR
# This script now calls all other scripts and will do the exact same as it did before.
# The only change is that all parts are split-up so they can run separately
# Load default script environment variables
# shellcheck source=.script_env
. "${BASEDIR}/.script_env"
# Checkout the web-vault from github
# shellcheck source=checkout_web_vault.sh
. "${BASEDIR}/checkout_web_vault.sh"
# Patch the web-vault using our patches
# shellcheck source=patch_web_vault.sh
. "${BASEDIR}/patch_web_vault.sh"
# Build the web-vault using node and npm
# shellcheck source=build_web_vault.sh
. "${BASEDIR}/build_web_vault.sh"
# Generate an archive from the build
# shellcheck source=tar_web_vault.sh
. "${BASEDIR}/tar_web_vault.sh"