From fd5718f614eaf1e2ed77babe0badc78ebca3d793 Mon Sep 17 00:00:00 2001 From: Bella Date: Mon, 13 Apr 2020 12:13:19 -0400 Subject: [PATCH] fix MODVERBROAD for new beta system --- scripts/curRelease | 1 + scripts/ver.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 scripts/curRelease diff --git a/scripts/curRelease b/scripts/curRelease new file mode 100644 index 00000000..0f1acbd5 --- /dev/null +++ b/scripts/curRelease @@ -0,0 +1 @@ +v1.1.2 diff --git a/scripts/ver.sh b/scripts/ver.sh index 0bef6969..9062aeb5 100755 --- a/scripts/ver.sh +++ b/scripts/ver.sh @@ -5,10 +5,11 @@ CUR_VER="$(cat ./scripts/curVer)" CUR_BETA="$(cat ./scripts/curBeta)" +CUR_RELEASE="$(cat ./scripts/curRelease)" sed -i "s/modVersion=.*/modVersion=${CUR_VER:1}$CUR_BETA/" gradle.properties 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 +sed -i "s/MODVERBROAD = \".*\";/MODVERBROAD = \"$CUR_RELEASE\";/" src/main/java/me/zeroeightsix/kami/KamiMod.java sed -i "s/\"version\": \".*\",/\"version\": \"${CUR_VER:1}$CUR_BETA\",/" src/main/resources/mcmod.info