kami-blue/scripts/ver.sh

15 lines
658 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
sed -i "s/MODVERBROAD = \".*\";/MODVERBROAD = \"$CUR_VER\";/" 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