mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-30 07:28:07 +03:00
Add badge to README.md
This commit is contained in:
parent
e68bb149fb
commit
63a037af60
@ -1,6 +1,6 @@
|
|||||||
# Rehlds
|
# Rehlds [![Build Status](http://teamcity.rehlds.org/app/rest/builds/buildType:(id:Rehlds_Publish)/statusIcon)](http://teamcity.rehlds.org/viewType.html?buildTypeId=Rehlds_Publish&guest=1) [![Download](http://rehlds.ru/version/rehlds/)](http://teamcity.rehlds.org/guestAuth/downloadArtifacts.html?buildTypeId=Rehlds_Publish&buildId=lastSuccessful)
|
||||||
|
|
||||||
Reverse-engineered (and bugfixed) HLDS
|
Reverse-engineered (and bugfixed) HLDS
|
||||||
[![Build Status](http://teamcity.rehlds.org/app/rest/builds/buildType:(id:Rehlds_Publish)/statusIcon)](http://teamcity.rehlds.org/viewType.html?buildTypeId=Rehlds_Publish&guest=1)
|
|
||||||
|
|
||||||
## What is this?
|
## What is this?
|
||||||
Rehlds is a result of reverse engineering of original HLDS (build 6152/6153) using DWARF debug info embedded into linux version of HLDS, engine_i486.so
|
Rehlds is a result of reverse engineering of original HLDS (build 6152/6153) using DWARF debug info embedded into linux version of HLDS, engine_i486.so
|
||||||
|
@ -20,7 +20,7 @@ class RehldsVersionInfo {
|
|||||||
String commitURL
|
String commitURL
|
||||||
Integer commitCount
|
Integer commitCount
|
||||||
|
|
||||||
String asMavenVersion() {
|
String asMavenVersion(boolean extra = true) {
|
||||||
StringBuilder sb = new StringBuilder()
|
StringBuilder sb = new StringBuilder()
|
||||||
sb.append(majorVersion).append('.' + minorVersion);
|
sb.append(majorVersion).append('.' + minorVersion);
|
||||||
if (maintenanceVersion != null) {
|
if (maintenanceVersion != null) {
|
||||||
@ -31,12 +31,12 @@ class RehldsVersionInfo {
|
|||||||
sb.append('.' + commitCount)
|
sb.append('.' + commitCount)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (suffix) {
|
if (extra && suffix) {
|
||||||
sb.append('-' + suffix)
|
sb.append('-' + suffix)
|
||||||
}
|
}
|
||||||
|
|
||||||
// do mark for this build like a modified version
|
// do mark for this build like a modified version
|
||||||
if (localChanges) {
|
if (extra && localChanges) {
|
||||||
sb.append('+m');
|
sb.append('+m');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -400,6 +400,8 @@ task generateAppVersion {
|
|||||||
inputs.property('version', rootProject.version)
|
inputs.property('version', rootProject.version)
|
||||||
inputs.property('commitDate', verInfo.asCommitDate())
|
inputs.property('commitDate', verInfo.asCommitDate())
|
||||||
|
|
||||||
|
println "##teamcity[buildNumber '" + verInfo.asMavenVersion(false) + "']";
|
||||||
|
|
||||||
doLast {
|
doLast {
|
||||||
|
|
||||||
def templateCtx = [
|
def templateCtx = [
|
||||||
|
@ -127,10 +127,10 @@ IF NOT %errlvl% == "1" (
|
|||||||
)
|
)
|
||||||
|
|
||||||
:: append extra string
|
:: append extra string
|
||||||
If NOT "%commitURL%"=="%commitURL:bitbucket.org=%" (
|
If NOT "!commitURL!"=="!commitURL:bitbucket.org=!" (
|
||||||
set commitURL=!commitURL!/commit/
|
|
||||||
) ELSE (
|
|
||||||
set commitURL=!commitURL!/commits/
|
set commitURL=!commitURL!/commits/
|
||||||
|
) ELSE (
|
||||||
|
set commitURL=!commitURL!/commit/
|
||||||
)
|
)
|
||||||
|
|
||||||
) ELSE (
|
) ELSE (
|
||||||
@ -142,10 +142,10 @@ IF NOT %errlvl% == "1" (
|
|||||||
set commitURL=!commitURL::=/!
|
set commitURL=!commitURL::=/!
|
||||||
|
|
||||||
:: append extra string
|
:: append extra string
|
||||||
If NOT "%commitURL%"=="%commitURL:bitbucket.org=%" (
|
If NOT "!commitURL!"=="!commitURL:bitbucket.org=!" (
|
||||||
set commitURL=https://!commitURL!/commit/
|
|
||||||
) ELSE (
|
|
||||||
set commitURL=https://!commitURL!/commits/
|
set commitURL=https://!commitURL!/commits/
|
||||||
|
) ELSE (
|
||||||
|
set commitURL=https://!commitURL!/commit/
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user