Skip to content

Commit

Permalink
Add Neo support
Browse files Browse the repository at this point in the history
  • Loading branch information
EnnuiL committed Nov 3, 2024
1 parent 40055bd commit be43b66
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew build --rerun-tasks
- name: Upload build artifacts (Fabric)
- name: Upload build artifacts (Universal)
continue-on-error: true
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-Fabric-${{ github.sha }}
name: ${{ github.event.repository.name }}-${{ github.sha }}
path: |
build/libs/*.jar
!build/libs/*-dev.jar
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ plugins {
}

def ENV = System.getenv()
def now = new Date()

version = ENV.TAG ?: "development-${now.format('YY.MMdd.HHmm', TimeZone.getTimeZone('UTC'))}+${libs.versions.minecraft.get()}${(!ENV.TAG && ENV.BUILD_NUMBER) ? "-build.${ENV.BUILD_NUMBER}" : ''}"
version = ENV.TAG ?: "0.0.0-development${(!ENV.TAG && ENV.BUILD_NUMBER) ? "-build.${ENV.BUILD_NUMBER}" : ''}"
group = project.maven_group

base {
Expand Down Expand Up @@ -47,9 +46,10 @@ dependencies {
}

processResources {
filteringCharset 'UTF-8'
inputs.properties 'version': version

filesMatching(['fabric.mod.json', 'quilt.mod.json']) {
filesMatching(['fabric.mod.json', 'quilt.mod.json', 'META-INF/neoforge.mods.toml']) {
expand 'version': version
}
}
Expand Down
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
minecraft = "1.21.1"
quilt_mappings = "1.21.1+build.3"

quilt_loom = "1.7.4"
quilt_loom = "1.8.4"
quilt_loader = "0.26.4"
shadow = "8.1.7"
shadow = "8.3.3"

quilt_config = "1.3.2"
night_config = "3.6.6"
Expand All @@ -26,4 +26,4 @@ quilt_config = [ "quilt_config", "quilt_config_serializers_toml", "night_config_

[plugins]
quilt_loom = { id = "org.quiltmc.loom", version.ref = "quilt_loom" }
shadow = { id = "io.github.goooler.shadow", version.ref = "shadow" }
shadow = { id = "com.gradleup.shadow", version.ref = "shadow" }
20 changes: 20 additions & 0 deletions src/main/resources/META-INF/neoforge.mods.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
modLoader = "javafml"
loaderVersion = "*"
license = "All rights reserved"

[[mods]]
modId = "wrench_wrapper"
version = "${version}"
displayName = "Wrench Wrapper"
logoFile = "assets/wrench_wrapper/icon.png"
authors = "Ennui Langeweile"
description = """
A handy wrapper for your Quilt Config!
"""

[[dependencies.wrench_wrapper]]
modId = "neoforge"
type = "required"
versionRange = "[21.0.0-beta,)"
ordering = "NONE"
side = "BOTH"

0 comments on commit be43b66

Please sign in to comment.