mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-21 03:22:20 +00:00
Fix version display again
This commit is contained in:
1 parent
860edd2e1a
commit
016249c6ca
2 files changed
+3
-2
No files matched your search
@@ -68,15 +68,16 @@ void downloadFile(String key, File file) {
|
||||
}
|
||||
|
||||
void uploadArtifacts(String shortVersion) {
|
||||
String cslversion = shortVersion.replace(".", "")
|
||||
File dir = rootProject.file("build/libs")
|
||||
if (!dir.isDirectory()) return
|
||||
|
||||
File[] files = dir.listFiles()
|
||||
for (file in files) {
|
||||
String key = getKey(file.getName())
|
||||
uploadFile(key, file)
|
||||
String url = cosUrl + key
|
||||
String mcversion = getMcVersion(file.getName()).replace(".", "").toLowerCase()
|
||||
String cslversion = shortVersion.replace(".", "")
|
||||
println(String.format("csl-%s-%s\t%s", mcversion, cslversion, url))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ String getCSLVersion() {
|
||||
|
||||
//Example: 14.10a-s33
|
||||
String getShortVersion() {
|
||||
return getVersion().replace("SNAPSHOT-", "s")
|
||||
return getCSLVersion().replace("SNAPSHOT-", "s")
|
||||
}
|
||||
|
||||
ext {
|
||||
|
||||
Reference in new issue
Block a user