2020-02-20 01:06:32 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Created by S-B99 on 19/02/20
|
2020-03-10 23:20:22 +00:00
|
|
|
# echo "Usage: ./ver.sh"
|
2020-02-20 01:06:32 +00:00
|
|
|
|
2020-03-10 23:20:22 +00:00
|
|
|
CUR_VER="$(cat ./scripts/curVer)"
|
|
|
|
CUR_BETA="$(cat ./scripts/curBeta)"
|
2020-02-20 01:06:32 +00:00
|
|
|
|
2020-03-10 23:21:57 +00:00
|
|
|
sed -i "s/modVersion=.*/modVersion=${CUR_VER:1}$CUR_BETA/" gradle.properties
|
2020-03-10 23:27:14 +00:00
|
|
|
sed -i "s/MODVER = \".*\";/MODVER = \"$CUR_VER$CUR_BETA\";/" src/main/java/me/zeroeightsix/kami/KamiMod.java
|
2020-03-10 23:20:22 +00:00
|
|
|
sed -i "s/MODVERSMALL = \".*\";/MODVERSMALL = \"$CUR_VER$CUR_BETA\";/" src/main/java/me/zeroeightsix/kami/KamiMod.java
|
2020-03-10 23:27:14 +00:00
|
|
|
sed -i "s/\"version\": \".*\",/\"version\": \"${CUR_VER:1}$CUR_BETA\",/" src/main/resources/mcmod.info
|
2020-02-20 01:06:32 +00:00
|
|
|
|
|
|
|
git reset
|
|
|
|
git add gradle.properties src/main/java/me/zeroeightsix/kami/KamiMod.java src/main/resources/mcmod.info
|
2020-03-10 23:20:22 +00:00
|
|
|
git commit -m "[BOT] New release: $CUR_VER$CUR_BETA"
|