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:
parent
f416f1b30f
commit
becdfd768b
@ -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
|
||||
|
@ -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'
|
||||
|
||||
}
|
||||
|
@ -173,6 +173,8 @@ task generateAppVersion {
|
||||
outputs.file versionFile
|
||||
outputs.file versionFileInc
|
||||
|
||||
println "##teamcity[buildNumber '" + verInfo.asMavenVersion(false) + "']";
|
||||
|
||||
doLast {
|
||||
def templateCtx = [
|
||||
verInfo : verInfo
|
||||
|
Loading…
Reference in New Issue
Block a user