Shadow/createRelease.sh

24 lines
603 B
Bash
Raw Normal View History

2022-01-06 05:39:44 -05:00
#!/usr/bin/env bash
echo "Input changelog, enter \"end\" when done"
echo -n "" > ./src/main/resources/changelogLatest.txt
while [[ true ]]; do
read -p "> " line
if [ "$line" == "end" ]; then
break
fi
echo $line >> ./src/main/resources/changelogLatest.txt
done
2022-01-07 09:01:19 -05:00
ver=`cat ./src/main/resources/version.txt`
verNew=$((ver+1))
echo "Version: $ver -> $verNew"
echo -n "$verNew" > ./src/main/resources/version.txt
2022-01-06 05:39:44 -05:00
echo "Running build"
export JAVA_HOME="$HOME/.jdks/openjdk-17.0.1/"
./gradlew build
if [[ ! -d bin ]]; then
mkdir bin
fi
2022-03-11 21:22:45 -05:00
mv ./build/libs/shadow-1.0.0.jar bin
2022-01-06 05:39:44 -05:00
echo "Made release"