mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-25 05:14:25 +00:00
Fix gradle upload
This commit is contained in:
1 parent
3bee9281ec
commit
2adbc25f69
4 files changed
+5
-4
No files matched your search
@@ -29,6 +29,7 @@ String getMcVersion(String filename) {
|
||||
|
||||
String getKey(String filename) {
|
||||
String name = filename.substring(0, filename.lastIndexOf('.'))
|
||||
if (name.indexOf('-') == -1) return null;
|
||||
if (filename.endsWith(".json"))
|
||||
return String.format(
|
||||
"versions/%s/%s",
|
||||
@@ -75,6 +76,7 @@ void uploadArtifacts(String shortVersion) {
|
||||
File[] files = dir.listFiles()
|
||||
for (file in files) {
|
||||
String key = getKey(file.getName())
|
||||
if (key == null) continue;
|
||||
uploadFile(key, file)
|
||||
String url = cosUrl + key
|
||||
String mcversion = getMcVersion(file.getName()).replace(".", "").toLowerCase()
|
||||
|
||||
Reference in new issue
Block a user