1
0
Fork 0

Update readme [no deploy]

kcx-1614
Prototik 2015-05-28 20:25:46 +07:00
parent 26bf1dc027
commit d9f726c43d
2 changed files with 5 additions and 6 deletions

View File

@ -1,7 +1,7 @@
# KCauldron
### KCauldron - continuation of Cauldron minecraft server
[![Donate PayPal USD][donate_paypal_usd_img]][donate_paypal_usd_url] [![Donate PayPal RUB][donate_paypal_rub_img]][donate_paypal_rub_url]
[![Donate Yandex Money][donate_yandex_img]][donate_yandex_url] [![Download][download_img]][download_url]
[![Donate PayPal USD][donate_paypal_usd_img]][donate_paypal_usd_url][![Donate PayPal RUB][donate_paypal_rub_img]][donate_paypal_rub_url]
[![Donate Yandex Money][donate_yandex_img]][donate_yandex_url]<a href="https://prok.pw/repo/pw/prok/KCauldron/?C=N&O=D" target="_blank">![Download][download_img]</a>
## Building KCauldron
* Checkout project
@ -44,5 +44,4 @@ If you're once checkout source - you not need to do it again
[donate_paypal_rub_img]: https://prok.pw/donate_paypal_rub.png
[donate_yandex_url]: https://prok.pw/donate/donate_yandex.htm
[donate_yandex_img]: https://prok.pw/donate_yandex.png
[download_url]: https://prok.pw/repo/pw/prok/KCauldron/
[download_img]: https://prok.pw/download.png

View File

@ -48,13 +48,13 @@ minecraft {
group = 'pw.prok'
def retrieveBuildNumber() {
if (!project.hasProperty('officialBuild')) return 'UNOFFICIAL'
if (!project.hasProperty('officialBuild')) return 'UNOFFICIAL.' + retrieveGitHash(false)
new JsonSlurper().parse(new URL("https://prok.pw/version/${group}/${name}"))['nextBuildNumber']
}
def retrieveGitHash() {
def retrieveGitHash(full = true) {
if (file('.git').exists())
return ['git', 'log', '--format=%H', '-n', '1'].execute().text.trim()
return ['git', 'log', "--format=%${full?'H':'h'}", '-n', '1'].execute().text.trim()
return 'NOTGIT'
}