3
0

Update readme [no deploy]

This commit is contained in:
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
### KCauldron - continuation of Cauldron minecraft server ### 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 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 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 ## Building KCauldron
* Checkout project * 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_paypal_rub_img]: https://prok.pw/donate_paypal_rub.png
[donate_yandex_url]: https://prok.pw/donate/donate_yandex.htm [donate_yandex_url]: https://prok.pw/donate/donate_yandex.htm
[donate_yandex_img]: https://prok.pw/donate_yandex.png [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 [download_img]: https://prok.pw/download.png

View File

@ -48,13 +48,13 @@ minecraft {
group = 'pw.prok' group = 'pw.prok'
def retrieveBuildNumber() { 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'] new JsonSlurper().parse(new URL("https://prok.pw/version/${group}/${name}"))['nextBuildNumber']
} }
def retrieveGitHash() { def retrieveGitHash(full = true) {
if (file('.git').exists()) 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' return 'NOTGIT'
} }