kami-blue/scripts/ver.sh

17 lines
715 B
Bash
Raw Normal View History

2020-02-20 01:06:32 +00:00
#!/bin/sh
# Created by S-B99 on 19/02/20
# echo "Usage: ./ver.sh"
2020-02-20 01:06:32 +00:00
CUR_VER="$(cat ./scripts/curVer)"
CUR_BETA="$(cat ./scripts/curBeta)"
2020-02-20 01:06:32 +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
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
git commit -m "[BOT] New release: $CUR_VER$CUR_BETA"