gen_hash and release scripts
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m49s
/ Build BaseBand Installer (push) Successful in 1m3s
/ Build BaseBand Loader (push) Successful in 1m40s
/ Build BaseBand Server (push) Successful in 1m42s

This commit is contained in:
Daniella / Tove 2024-06-12 11:20:48 +02:00
parent fce00f8c35
commit c97aaf6098
Signed by: TudbuT
GPG key ID: B3CF345217F202D3
2 changed files with 19 additions and 0 deletions

View file

@ -1,2 +1,10 @@
#!/bin/bash
cat > Client/src/main/java/de/com/baseband/client/util/data/GitHash.java << EOF
package de.com.baseband.client.util.data;
public class GitHash {
public static final String GIT_HASH = "$(git describe --always)";
}
EOF

11
scripts/release.sh Normal file
View file

@ -0,0 +1,11 @@
#!/bin/bash
if ! git diff-index --quiet --cached HEAD -- ; then
echo "Cannot release dirty git tree. Commit your changes to main first."
exit 1
fi
git push
git checkout release
git merge main
git push
git checkout main