2
0
mirror of https://github.com/rehlds/reapi.git synced 2024-12-27 07:05:28 +03:00

Update README.md

This commit is contained in:
s1lentq 2017-01-12 04:24:35 +07:00
parent f416f1b30f
commit becdfd768b
3 changed files with 4 additions and 24 deletions

View File

@ -1,2 +1,2 @@
# Reapi [![Build Status](http://teamcity.rehlds.org/app/rest/builds/buildType:(id:Reapi_Publish)/statusIcon)](http://teamcity.rehlds.org/viewType.html?buildTypeId=Reapi_Publish&guest=1)
# Reapi [![Build Status](http://teamcity.rehlds.org/app/rest/builds/buildType:(id:Reapi_Publish)/statusIcon)](http://teamcity.rehlds.org/viewType.html?buildTypeId=Reapi_Publish&guest=1) [![Download](http://rehlds.ru/version/reapi/)](http://teamcity.rehlds.org/guestAuth/downloadArtifacts.html?buildTypeId=Reapi_Publish&buildId=lastSuccessful)
AMX Mod X module, using API regamedll & rehlds

View File

@ -45,29 +45,7 @@ task publishPackage(type: Zip, dependsOn: 'publishPrepareFiles') {
from 'publish/publishRoot/reapi'
}
Properties repoCreds = new Properties()
project.ext.repoCreds = repoCreds
if (file('repo_creds.properties').exists()) {
println 'Loading credentials'
file('repo_creds.properties').withReader('UTF-8', { Reader r ->
repoCreds.load(r)
})
}
task updateVersion {
def http = new HTTPBuilder("http://rehlds.ru/version/update.php?appid=reapi&key=" + repoCreds.getProperty('key') + "&version=" + project.ext.reapiVersionInfo.asMavenVersion(false));
http.headers = [ "User-Agent": "Mozilla/5.0" ];
http.request(POST) {
response.success = { resp ->
println "Version version success! Status: ${resp.status}"
}
response.failure = { resp ->
println "Request failed with status ${resp.status}"
}
}
}
task doPackage {
dependsOn 'publishPackage', 'updateVersion'
dependsOn 'publishPackage'
}

View File

@ -173,6 +173,8 @@ task generateAppVersion {
outputs.file versionFile
outputs.file versionFileInc
println "##teamcity[buildNumber '" + verInfo.asMavenVersion(false) + "']";
doLast {
def templateCtx = [
verInfo : verInfo