mirror of
https://github.com/kami-blue/client
synced 2025-03-25 04:38:05 +00:00
remove travis from prehHook.sh and use git
This commit is contained in:
parent
0e4f23edda
commit
22596384d4
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
CUR_VER="$(cat ./scripts/curVer)"
|
||||
COMMIT_TRIM="${TRAVIS_COMMIT::7}"
|
||||
COMMIT_TRIM="$(git log --format=%h -1)"
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user