mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-02 16:25:56 +03:00
b0abbfacd4
* Centralise version scripts and fix Docker version * Refactor generation of a git-hash-based version into get-version-from-git * Refactor normalization of versions (stripping leading v) into normalize-version.sh * Call get-version-from-git from ci_package.sh, call normalize-version from package.sh * Refactor docker-write-version.sh into docker-package.sh, which both writes the version file and invokes yarn build passing VERSION * Normalize the version received from the server
11 lines
291 B
Bash
Executable file
11 lines
291 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Runs package.sh, passing DIST_VERSION determined by git
|
|
|
|
set -ex
|
|
|
|
rm dist/element-*.tar.gz || true # rm previous artifacts without failing if it doesn't exist
|
|
|
|
DIST_VERSION=`$(dirname $0)/get-version-from-git.sh`
|
|
|
|
CI_PACKAGE=true DIST_VERSION=$DIST_VERSION scripts/package.sh
|