2020-02-20 01:06:32 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-04-18 15:20:04 +00:00
|
|
|
# Created by dominikaaaa 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-04-13 16:13:19 +00:00
|
|
|
CUR_RELEASE="$(cat ./scripts/curRelease)"
|
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-04-13 16:13:19 +00:00
|
|
|
sed -i "s/MODVERBROAD = \".*\";/MODVERBROAD = \"$CUR_RELEASE\";/" 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
|
|
|
|