16 lines
552 B
Bash
Executable File
16 lines
552 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# bless you chris and andy <3
|
|
DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
MNML_PATH=$(realpath "$DIR/../")
|
|
|
|
VERSION=$1
|
|
|
|
echo "Setting version to $VERSION"
|
|
|
|
echo $VERSION | tr -d '\n' > VERSION
|
|
cd $MNML_PATH/server && sed -i "/^version/c\version = \"$VERSION\"" Cargo.toml
|
|
cd $MNML_PATH/ops && npm --allow-same-version --no-git-tag-version version "$VERSION"
|
|
cd $MNML_PATH/client && npm --allow-same-version --no-git-tag-version version "$VERSION"
|
|
cd $MNML_PATH/acp && npm --allow-same-version --no-git-tag-version version "$VERSION"
|