mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-20 16:59:40 +00:00
Fix: CurseForge uploading
This commit is contained in:
1 parent
1e5bfcd1e7
commit
5bb16ededa
3 files changed
+10
-4
No files matched your search
@@ -72,7 +72,7 @@ public class MinecraftUtil {
|
||||
}
|
||||
|
||||
//No version can be found
|
||||
return null;
|
||||
return "unknown";
|
||||
}
|
||||
|
||||
// (domain|ip)(:port)
|
||||
|
||||
@@ -4,11 +4,11 @@ Custom Skin Loader mod for Minecraft.
|
||||
It's a mod which can load skins and capes from any online source or from your local.
|
||||
|
||||
## Download
|
||||
**由于发布周期的原因,从 GitHub Release 页面下载到的 CustomSkinLoader 可能已经过时,不一定能兼容最新的 Minecraft/Forge/Fabric,请访问 https://littlesk.in/csl-latest 获取最新的下载链接。**
|
||||
**CustomSkinLoader which downloaded from GitHub Release page may have been outdated because of the release lifecycle, and may not be compatible with the latest Minecraft/Forge/Fabric, please check https://littlesk.in/csl-latest to get the latest download link.**
|
||||
Latest version could be found in [CurseForge](https://minecraft.curseforge.com/projects/customskinloader) or [Modrinth](https://modrinth.com/mod/customskinloader).
|
||||
中文用户也可以从[33 Kit](https://3-3.dev/csl-download)获取最新版本。
|
||||
|
||||
Build Server : [CircleCI](https://circleci.com/gh/xfl03/MCCustomSkinLoader) & ~~[Infinity Studio CI](https://ci.infstudio.net/job/CustomSkinLoader/)~~
|
||||
Release Page : [MCBBS](http://www.mcbbs.net/thread-269807-1-1.html) & [GitHub](https://github.com/xfl03/MCCustomSkinLoader/releases) & [CurseForge](https://minecraft.curseforge.com/projects/customskinloader) & [Modrinth](https://modrinth.com/mod/customskinloader)
|
||||
Release Page : [MCBBS](http://www.mcbbs.net/thread-269807-1-1.html) & [GitHub](https://github.com/xfl03/MCCustomSkinLoader/releases) & [CurseForge](https://minecraft.curseforge.com/projects/customskinloader) & [Modrinth](https://modrinth.com/mod/customskinloader) & [33 Kit](https://3-3.dev/csl-download)
|
||||
|
||||
## Contact Us
|
||||
[QQ Group](https://im.qq.com/): [651287593](https://jq.qq.com/?_wv=1027&k=vF16R5tg)
|
||||
|
||||
@@ -6,6 +6,7 @@ import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
import com.matthewprenger.cursegradle.CurseArtifact;
|
||||
import com.matthewprenger.cursegradle.CurseExtension;
|
||||
import com.matthewprenger.cursegradle.CurseUploadTask;
|
||||
import org.gradle.api.Project;
|
||||
import org.gradle.api.plugins.BasePluginConvention;
|
||||
@@ -15,6 +16,11 @@ public class CurseForgeUtil {
|
||||
public static void provideCurseForge(Project project) {
|
||||
if (!project.getPlugins().hasPlugin("base")) return;
|
||||
|
||||
//Fix "Extension of type 'CurseExtension' does not exist."
|
||||
if (project.getExtensions().findByType(CurseExtension.class) == null) {
|
||||
project.getExtensions().create("curseforge", CurseExtension.class);
|
||||
}
|
||||
|
||||
// We don’t use the task provided by the plugin because it adds some dependencies that we don’t need.
|
||||
project.getTasks().create("publishCurseForge", CurseUploadTask.class, task -> {
|
||||
task.setGroup("publish");
|
||||
|
||||
Reference in new issue
Block a user