1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-03-24 04:16:58 +00:00

Don't specify the version number in mods.toml

This commit is contained in:
Jonathan Coates 2021-11-25 14:54:32 +00:00
parent 99de00e16e
commit a4c5ecf8df
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06
2 changed files with 5 additions and 11 deletions

View File

@ -223,9 +223,6 @@ jar.finalizedBy('reobfJar')
} }
processResources { processResources {
inputs.property "version", mod_version
inputs.property "mcversion", mc_version
def hash = 'none' def hash = 'none'
Set<String> contributors = [] Set<String> contributors = []
try { try {
@ -242,18 +239,14 @@ processResources {
duplicatesStrategy = DuplicatesStrategy.INCLUDE duplicatesStrategy = DuplicatesStrategy.INCLUDE
from(sourceSets.main.resources.srcDirs) { from(sourceSets.main.resources.srcDirs) {
include 'META-INF/mods.toml'
include 'data/computercraft/lua/rom/help/credits.txt' include 'data/computercraft/lua/rom/help/credits.txt'
expand( expand(
'version': mod_version,
'mcversion': mc_version,
'gitcontributors': contributors.sort(false, String.CASE_INSENSITIVE_ORDER).join('\n') 'gitcontributors': contributors.sort(false, String.CASE_INSENSITIVE_ORDER).join('\n')
) )
} }
from(sourceSets.main.resources.srcDirs) { from(sourceSets.main.resources.srcDirs) {
exclude 'META-INF/mods.toml'
exclude 'data/computercraft/lua/rom/help/credits.txt' exclude 'data/computercraft/lua/rom/help/credits.txt'
} }
} }

View File

@ -2,17 +2,18 @@ modLoader="javafml"
loaderVersion="[37,38)" loaderVersion="[37,38)"
issueTrackerURL="https://github.com/cc-tweaked/CC-Tweaked/issues" issueTrackerURL="https://github.com/cc-tweaked/CC-Tweaked/issues"
displayURL="https://github.com/cc-tweaked/CC-Tweaked"
logoFile="pack.png" logoFile="pack.png"
credits="Created by Daniel Ratcliffe (@DanTwoHundred)"
authors="Daniel Ratcliffe, Aaron Mills, SquidDev"
license="ComputerCraft Public License (https://raw.githubusercontent.com/dan200/ComputerCraft/master/LICENSE)" license="ComputerCraft Public License (https://raw.githubusercontent.com/dan200/ComputerCraft/master/LICENSE)"
[[mods]] [[mods]]
modId="computercraft" modId="computercraft"
version="${version}" version="${file.jarVersion}"
displayName="CC: Tweaked" displayName="CC: Tweaked"
displayURL="https://tweaked.cc"
credits="Created by Daniel Ratcliffe (@DanTwoHundred)"
authors="Daniel Ratcliffe, Aaron Mills, SquidDev"
description=''' description='''
CC: Tweaked is a fork of ComputerCraft, adding programmable computers, turtles and more to Minecraft. CC: Tweaked is a fork of ComputerCraft, adding programmable computers, turtles and more to Minecraft.
''' '''