fix model
This commit is contained in:
26
build-all.sh
Normal file
26
build-all.sh
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
latest=$(npm view @infinimotion/model-frontend --registry https://git.chequeo.de/api/packages/infinimotion/npm/ | grep latest)
|
||||
latest=($latest)
|
||||
version=${latest[1]}
|
||||
|
||||
major=$(cut -d'.' -f1 <<<"$version")
|
||||
minor=$(cut -d'.' -f2 <<<"$version")
|
||||
patch=$(cut -d'.' -f3 <<<"$version")
|
||||
|
||||
new_patch=$((patch+1))
|
||||
new_version=$major.$minor.$new_patch
|
||||
|
||||
version_cfg="ProjectVariable\.PROJECT_VERSION=[0-9]*\.[0-9]*\.[0-9]*$"
|
||||
new_version_cfg="ProjectVariable.PROJECT_VERSION="$new_version
|
||||
|
||||
echo "Changing version..."
|
||||
sed -i -E -e "s/"$version_cfg"/"$new_version_cfg"/g" ./TelosysTools/telosys-tools.cfg
|
||||
echo $version" -> "$new_version
|
||||
|
||||
java -jar /c/Program\ Files/telosys-cli/telosys-cli-4.2.0-001.jar -h . -i input-telosys-cli.txt
|
||||
(cd frontend && npm install && tsup && npm publish)
|
||||
(cd backend && mvn package deploy)
|
||||
(cd persistence && mvn package deploy)
|
||||
|
||||
echo "Published new version "$new_version
|
||||
Reference in New Issue
Block a user