Commit 78253c91 by Jonathan Thomas

Troubleshoot 1.20 support #2

parent 83cef229
Pipeline #12139 passed with stage
in 22 seconds
...@@ -36,9 +36,10 @@ build_mod: ...@@ -36,9 +36,10 @@ build_mod:
sed -i "s/loader_version=.*/loader_version=0.15.11/" gradle.properties sed -i "s/loader_version=.*/loader_version=0.15.11/" gradle.properties
sed -i "s/fabric_version=.*/fabric_version=$fabric_version/" gradle.properties sed -i "s/fabric_version=.*/fabric_version=$fabric_version/" gradle.properties
# Print the contents of gradle.properties # Update minecraft version in fabric.mod.json
echo "Contents of gradle.properties:" sed -i "s/\"minecraft\": \".*\"/\"minecraft\": \">=$minecraft_version <${minecraft_version%.*}.$((${minecraft_version##*.}+1))\"/" src/main/resources/fabric.mod.json
cat gradle.properties echo "Contents of fabric.mod.json:"
cat src/main/resources/fabric.mod.json
./gradlew build ./gradlew build
find build/libs -type f -name '*sources*.jar' -exec rm {} \; find build/libs -type f -name '*sources*.jar' -exec rm {} \;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment