Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 3 additions & 21 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,26 +56,8 @@ jobs:
fi
artifact_path="build/libs/useless_mod-${mod_version}.jar"

# 发布说明以 CHANGELOG.md 中该版本的章节为准;章节缺失时回退到 Release 正文,
# 再回退到自上一个标签以来的提交标题,避免平台侧出现空 changelog。
# CHANGELOG.md 的版本标题与 mod_version 完全一致(1.20.1 线不带前缀),无需去前缀。
cl_version="${mod_version}"
changelog=""
if [[ -f CHANGELOG.md ]]; then
changelog="$(awk -v ver="${cl_version}" '
index($0, "## [" ver "]") == 1 { found = 1; next }
found && index($0, "## [") == 1 { exit }
found { lines[++n] = $0 }
END {
start = 1; while (start <= n && lines[start] ~ /^[[:space:]]*$/) start++
end = n; while (end >= start && lines[end] ~ /^[[:space:]]*$/) end--
for (i = start; i <= end; i++) print lines[i]
}
' CHANGELOG.md)"
fi
if [[ -z "${changelog//[[:space:]]/}" ]]; then
changelog="${RELEASE_BODY}"
fi
# 使用 Release 正文;未填写时从提交记录生成平台要求的发布说明。
changelog="${RELEASE_BODY}"
if [[ -z "${changelog//[[:space:]]/}" ]]; then
prev_tag="$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || true)"
if [[ -n "${prev_tag}" ]]; then
Expand All @@ -97,7 +79,7 @@ jobs:
echo "CHANGELOG_EOF"
} >> "$GITHUB_OUTPUT"

- name: Setup JDK 21
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
Expand Down
95 changes: 0 additions & 95 deletions CHANGELOG.md

This file was deleted.

8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ A Minecraft mod featuring various utilities and enhancements.

## Forge 1.20.1

Version `20.2.4.7` targets Minecraft 1.20.1, Forge 47.3.10+, Java 17,
Version `20.2.4.9` targets Minecraft 1.20.1, Forge 47.3.10+, Java 17,
AE2 15.4.8+, Mekanism 10.4.15+ (compiled against 10.4.16.80),
Mekanism Extras 1.5.0+ and the Create 2 Mekanism: Sky Edition 2 integration profile.
Build with `./gradlew build` (Windows: `gradlew.bat build`); Python 3 is used by
nine release-bytecode/outline regression checks. Dependencies resolve from public Maven repositories.
release-bytecode and outline regression checks. Dependencies resolve from public Maven repositories.
The `portBridgeTest` suite also runs as part of `check` and is not shipped in the mod jar.

The EMI/JEMI bridge preserves custom AE keys and long quantities when filling native
processing patterns, including Applied Mekanistics chemicals. Native JEI types and
current quantities are retained for chemical tooltips and ghost dragging.

Forge, Minecraft and AE2 are required. Every compiled mod integration declares a
minimum and compatible version range in `src/main/resources/META-INF/mods.toml`;
these integrations remain optional, so an absent integration does not prevent startup.
Expand Down
2 changes: 0 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,3 @@ apply from: 'gradle/bytecode-contract-tests.gradle'
apply from: 'gradle/merge-game-tests.gradle'

apply from: 'gradle/bundled-compat-libraries.gradle'

apply from: 'gradle/config-ui-check.gradle'
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ forge_version=47.4.10
loader_version_range=[47,)
mod_id=useless_mod
mod_name=Useless Mod
mod_version=20.2.4.7
mod_version=20.2.4.9
mod_group_id=com.sorrowmist.useless
mod_license=MIT
29 changes: 0 additions & 29 deletions gradle/config-ui-check.gradle

This file was deleted.

28 changes: 0 additions & 28 deletions gradle/merge-game-tests.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,34 +29,6 @@ dependencies {
modRuntimeOnly 'io.github.llamalad7:mixinextras-forge:0.5.0'
}

if (providers.gradleProperty('compatGameTest').isPresent()) {
sourceSets.gameTest.java.srcDir 'src/compatGameTest/java'
sourceSets.gameTest.resources.srcDir 'src/compatGameTest/resources'
def stretcherRepo = providers.gradleProperty('stretcherRepo').get()
repositories {
flatDir { dirs "${stretcherRepo}/build/libs" }
}
dependencies {
modRuntimeOnly 'maven.modrinth:rxYaglEe:d83Wdhdn'
modRuntimeOnly 'curse.maven:applied-flux-965012:6755986'
modRuntimeOnly 'maven.modrinth:UhW5uCKw:eoUaDkZf'
modRuntimeOnly 'maven.modrinth:Ce6I4WUE:uxe1WQp4'
modRuntimeOnly 'maven.modrinth:IiATswDj:9n9p68Qq'
modRuntimeOnly 'maven.modrinth:qDJXZJTz:PQ3IlR98'
modRuntimeOnly 'maven.modrinth:8BmcQJ2H:aVW7Z5da'
modRuntimeOnly 'local.compat:useless_stretcher:20.1.6.0-compat.2'
gameTestCompileOnly files("${stretcherRepo}/build/devlibs/useless_stretcher-20.1.6.0-compat.2.jar")
}
if (providers.gradleProperty('compatClientProbe').isPresent()) {
repositories { flatDir { dirs providers.gradleProperty('packMods').get() } }
dependencies {
modRuntimeOnly 'maven.modrinth:u6dRKJwZ:TrKZlZ0b'
modRuntimeOnly 'pack.fixture:exmachinis-deorum:1.20.1-3.0.3'
}
legacyForge.runs.client.systemProperty 'useless.compatClientProbe', 'true'
}
}

legacyForge {
mods { "${mod_id}" { sourceSet sourceSets.gameTest } }
runs {
Expand Down
Loading
Loading