Add CurseForge
This commit is contained in:
parent
7c70cf81bb
commit
8e720488fa
14
README.md
14
README.md
@ -33,5 +33,17 @@ Place this in your ``fabric.mod.json``:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Also replace this in ````build.gradle````:
|
||||||
|
```gradle
|
||||||
|
version = project.mod_version
|
||||||
|
```
|
||||||
|
with:
|
||||||
|
```gradle
|
||||||
|
version = "${project.mod_version}+${project.minecraft_version}"
|
||||||
|
```
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
[View Changelog](CHANGELOG.md)
|
[View Changelog](CHANGELOG.md)
|
||||||
|
|
||||||
|
## Credits
|
||||||
|
The icon is a recolored version of ModMenu's icon.
|
26
build.gradle
26
build.gradle
@ -1,5 +1,6 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'fabric-loom' version '0.4-SNAPSHOT'
|
id 'fabric-loom' version '0.4-SNAPSHOT'
|
||||||
|
id 'com.matthewprenger.cursegradle' version '1.4.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
compileJava {
|
compileJava {
|
||||||
@ -59,3 +60,28 @@ task sourcesJar(type: Jar, dependsOn: classes) {
|
|||||||
jar {
|
jar {
|
||||||
from "LICENSE"
|
from "LICENSE"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (project.hasProperty('curseforge.api_key')) {
|
||||||
|
curseforge {
|
||||||
|
apiKey = project.getProperty('curseforge.api_key')
|
||||||
|
project {
|
||||||
|
id = project.curseforge_id
|
||||||
|
changelog = 'A changelog can be found at https://gitea.thebrokenrail.com/TheBrokenRail/ModUpdater/src/branch/master/CHANGELOG.md'
|
||||||
|
releaseType = 'release'
|
||||||
|
addGameVersion project.simple_minecraft_version
|
||||||
|
addGameVersion 'Fabric'
|
||||||
|
mainArtifact(remapJar) {
|
||||||
|
displayName = "ModUpdater v${mod_version} for ${project.minecraft_version}"
|
||||||
|
}
|
||||||
|
afterEvaluate {
|
||||||
|
uploadTask.dependsOn('remapJar')
|
||||||
|
}
|
||||||
|
relations {
|
||||||
|
requiredDependency 'fabric-api'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
options {
|
||||||
|
forgeGradleIntegration = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -3,11 +3,13 @@ org.gradle.jvmargs = -Xmx1G
|
|||||||
|
|
||||||
# Fabric Properties
|
# Fabric Properties
|
||||||
minecraft_version = 1.16
|
minecraft_version = 1.16
|
||||||
|
curseforge_id = 391583
|
||||||
|
simple_minecraft_version = 1.16
|
||||||
yarn_build = 1
|
yarn_build = 1
|
||||||
fabric_loader_version = 0.8.8+build.202
|
fabric_loader_version = 0.8.8+build.202
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 0.0.1
|
mod_version = 1.0.0
|
||||||
maven_group = com.thebrokenrail
|
maven_group = com.thebrokenrail
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
@ -27,5 +27,11 @@
|
|||||||
"fabricloader": ">=0.7.4",
|
"fabricloader": ">=0.7.4",
|
||||||
"fabric": "*",
|
"fabric": "*",
|
||||||
"minecraft": "1.16.x"
|
"minecraft": "1.16.x"
|
||||||
|
},
|
||||||
|
"custom": {
|
||||||
|
"modupdater": {
|
||||||
|
"strategy": "curseforge",
|
||||||
|
"projectID": 391583
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user