2020-03-10 23:20:22 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
CUR_VER="$(cat ./scripts/curVer)"
|
2020-03-10 23:51:27 +00:00
|
|
|
COMMIT_TRIM="${TRAVIS_COMMIT::7}"
|
2020-03-11 03:12:23 +00:00
|
|
|
|
2020-03-10 23:45:10 +00:00
|
|
|
sed -i "s/modVersion=.*/modVersion=${CUR_VER:1}-$COMMIT_TRIM/" gradle.properties
|
|
|
|
sed -i "s/\"version\": \".*\",/\"version\": \"${CUR_VER:1}-$COMMIT_TRIM\",/" src/main/resources/mcmod.info
|
2020-03-11 03:12:23 +00:00
|
|
|
sed -i "s/MODVER = \".*\";/MODVER = \"$CUR_VER-$COMMIT_TRIM\";/" src/main/java/me/zeroeightsix/kami/KamiMod.java
|