Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
ea6982c
Update build dependencies
QiuYe-QAQ Nov 22, 2026
f01184e
Restructure the project as MixinWeaver
QiuYe-QAQ Nov 22, 2026
ed8b7ad
Document the MixinWeaver architecture
QiuYe-QAQ Nov 22, 2026
3a75e89
Add a Chinese-first bilingual README
QiuYe-QAQ Nov 22, 2026
10cd073
Translate project comments into Chinese
QiuYe-QAQ Nov 22, 2026
c47107c
Standardize platform archive names
QiuYe-QAQ Nov 22, 2026
3117d64
Describe MixinWeaver as a Mixin extension
QiuYe-QAQ Nov 22, 2026
07eef7b
Move Mixin integration into Core
QiuYe-QAQ Nov 22, 2026
c3ae120
Merge platform development and distribution modules
QiuYe-QAQ Nov 22, 2026
97efa90
UpData
QiuYe-QAQ Nov 22, 2026
3c705e5
UpData
QiuYe-QAQ Nov 22, 2026
cd78a93
接入条件式混入选择
QiuYe-QAQ Nov 22, 2026
aac440f
接入跨混入注入与注解调整
QiuYe-QAQ Nov 22, 2026
c4cba32
接入继承分析与动态混入目标
QiuYe-QAQ Nov 22, 2026
afe7e29
支持声明式取消与注入调整
QiuYe-QAQ Nov 22, 2026
227dc35
补充双语用法与架构文档
QiuYe-QAQ Nov 22, 2026
7b9eb49
补全插件追加混入与版本条件
QiuYe-QAQ Nov 22, 2026
3da31d6
接入三个加载器发行并迁移构建插件
QiuYe-QAQ Nov 22, 2026
5eb35ca
UpData
QiuYe-QAQ Nov 22, 2026
a7d6f88
处理动态混入克隆的弃用告警
QiuYe-QAQ Nov 22, 2026
b35b792
补充三平台用法与验证文档
QiuYe-QAQ Nov 22, 2026
9007172
UpData
QiuYe-QAQ Nov 22, 2026
df250be
补全动态目标与副本注入处理
QiuYe-QAQ Nov 22, 2026
3c87a7d
提前筛选可选目标并开放条件查询
QiuYe-QAQ Nov 22, 2026
eb32759
接入处理方法编译映射与候选诊断
QiuYe-QAQ Nov 22, 2026
99e0fdf
支持注入器的声明式与类型化调整
QiuYe-QAQ Nov 22, 2026
d262c73
验证严格目标模式和附加注入器
QiuYe-QAQ Nov 22, 2026
ed5d93c
更新功能用法与迁移文档
QiuYe-QAQ Nov 22, 2026
9006dbb
统一三平台的内嵌依赖打包
QiuYe-QAQ Nov 22, 2026
d0f3929
记录内嵌依赖与混入配置
QiuYe-QAQ Nov 22, 2026
9882f9f
统一项目标识和源码包名
QiuYe-QAQ Nov 23, 2026
954fc38
同步项目文档和发布文案
QiuYe-QAQ Nov 23, 2026
c2c7903
UpData
QiuYe-QAQ Nov 23, 2026
73aa0b1
修复跨模块游戏测试任务解析
QiuYe-QAQ Nov 23, 2026
28aa4cc
接入各平台原生构建和服务端测试
QiuYe-QAQ Nov 23, 2026
58969bf
更新持续集成测试顺序和构建文档
QiuYe-QAQ Nov 23, 2026
ecc3f1e
恢复持续集成的显式失败判定
QiuYe-QAQ Nov 23, 2026
44249e1
UpData
QiuYe-QAQ Nov 23, 2026
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
6 changes: 3 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Auto detect text files and normalize to LF
# 自动检测文本文件并统一使用 LF。
* text=auto eol=lf

# Ensure these are always LF
# 以下文本文件始终使用 LF。
*.java text eol=lf
*.kt text eol=lf
*.json text eol=lf
Expand All @@ -13,7 +13,7 @@
*.md text eol=lf
*.txt text eol=lf

# Binary files
# 二进制文件
*.png binary
*.jpg binary
*.jar binary
Expand Down
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/000-bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ body:
- label: "I have checked that this occurs on the latest version. / 我已确认此问题在最新版本中出现。"
required: true
- type: input
id: template-version
id: mixinsplice-version
attributes:
label: Template Version / Template 版本
description: The version of Template you were using when this bug was encountered. If you do not know where to find this, look for the mod jar file in the mods folder, or in the mods viewer in-game. / 遇到此错误时使用的 Template 版本。如果不知道如何查找,请查看 mods 文件夹中的 mod jar 文件,或游戏内的模组查看器。
label: MixinSplice Version / MixinSplice 版本
description: The version of MixinSplice you were using when this bug was encountered. If you do not know where to find this, look for the mod jar file in the mods folder, or in the mods viewer in-game. / 遇到此错误时使用的 MixinSplice 版本。如果不知道如何查找,请查看 mods 文件夹中的 mod jar 文件,或游戏内的模组查看器。
placeholder: "Example: v2.3.4 / 例如:v2.3.4"
validations:
required: true
Expand Down Expand Up @@ -110,4 +110,4 @@ body:
required: false
- type: markdown
attributes:
value: Thank you for taking the time to fill out this bug report. / 感谢您抽出时间填写此错误报告。
value: Thank you for taking the time to fill out this bug report. / 感谢您抽出时间填写此错误报告。
5 changes: 4 additions & 1 deletion .github/actions/build_setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ runs:
REF: ${{ inputs.ref || github.ref }}
with:
distribution: temurin
java-version: 21
java-version: |
8
17
21

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/auto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Latest Build
on:
push:
branches: ['1.21']
paths: ['src/**', '**/*.gradle', 'gradle.properties']
paths: ['**/src/**', '**/*.gradle', 'gradle.properties', 'gradle/**', 'gradlew*']

concurrency:
group: auto-build-${{ github.ref }}
Expand All @@ -24,7 +24,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # do a full checkout instead of a shallow clone of HEAD so spotless's ratchetFrom works
fetch-depth: 0 # Spotless 的 ratchetFrom 需要完整提交历史。
- name: Setup Build
uses: ./.github/actions/build_setup
- name: Grant execute permission for gradlew
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
name: '${{ github.ref_name }}-${{ steps.ver.outputs.version}} SNAPSHOT ${{ env.VERSION_SUFFIX }}'
prerelease: true
body: |
The latest build of Template for Minecraft ${{ github.ref_name }}.
Please report any [issues](https://github.com/ExtremelyFrozen/ExtremelyFrozen-Template/issues).
The latest build of MixinSplice for Minecraft ${{ github.ref_name }}.
Please report any [issues](${{ github.server_url }}/${{ github.repository }}/issues).
${{ steps.changelog.outputs.changelog }}
files: build/libs/*.jar
6 changes: 3 additions & 3 deletions .github/workflows/build-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
paths: ['**']

# Cancel previous jobs if PR gets another push
# PR 收到新提交时取消上一轮任务。
concurrency:
group: PR-build-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -22,8 +22,8 @@ jobs:
with:
filters: |
code:
- 'src/**'
- '*.gradle'
- '**/src/**'
- '**/*.gradle'
- 'gradle.properties'
- 'gradlew*'
- 'gradle/**'
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/format-java.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# Runs formatting requirements
# 检查源码格式。
name: Java Formatting

on:
push:
branches: ['1.21']
paths: ['src/main/java/**', 'src/test/**']
paths:
- '**/src/*/java/**'
- '**/src/*/kotlin/**'
- '**/src/*/resources/**'
- 'gradle/scripts/spotless.gradle'
- 'gradle/spotless/**'
pull_request:
paths: ['**']

Expand All @@ -22,15 +27,18 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # do a full checkout instead of a shallow clone of HEAD so spotless's ratchetFrom works
fetch-depth: 0 # Spotless 的 ratchetFrom 需要完整提交历史。
- name: Check Path Filter
uses: dorny/paths-filter@v3
id: filter
with:
filters: |
code:
- 'src/main/java/**'
- 'src/test/**'
- '**/src/*/java/**'
- '**/src/*/kotlin/**'
- '**/src/*/resources/**'
- 'gradle/scripts/spotless.gradle'
- 'gradle/spotless/**'
- name: Setup Build
if: steps.filter.outputs.code == 'true'
uses: ./.github/actions/build_setup
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manage-issue-labels.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Manages labels on new issues
# 为新 Issue 管理标签。
name: Issue Labels

on:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/manage-pr-labels.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Manages labels on PRs before allowing merging
# 合并前检查 PR 标签。
name: Pull Request Labels

# Checks for label once PR has been reviewed or label is applied
# PR 完成审查或被添加标签时执行检查。
on:
pull_request:
types: [opened, labeled, unlabeled]
Expand All @@ -15,25 +15,25 @@ jobs:
name: Label Check
runs-on: ubuntu-latest
permissions:
pull-requests: read # needed to utilize required-labels
pull-requests: read # required-labels 需要读取 PR。
steps:
- name: Check for Merge-Blocking Labels # blocks merge if present
- name: Check for Merge-Blocking Labels # 存在阻止合并的标签时,检查失败。
uses: mheap/github-action-required-labels@v5
with:
mode: exactly
count: 0
labels: 'do not merge, admin merge'
exit_type: failure

- name: Check for Required Type Labels # require at least one of these labels
- name: Check for Required Type Labels # 至少需要一个类型标签。
uses: mheap/github-action-required-labels@v5
with:
mode: minimum
count: 1
labels: 'type: feature, type: bugfix, type: refactor, type: translation, type: tests, ignore changelog'
exit_type: failure

- name: Check for Required Release Label # require exactly one of these labels
- name: Check for Required Release Label # 必须恰好有一个发布标签。
uses: mheap/github-action-required-labels@v5
with:
mode: exactly
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ jobs:
# java: ${{ env.JAVA }}
# fail-mode: fail

# After successful release, PR version bump and changelog
# 发布成功后,通过 PR 更新版本号和变更日志。
bump-version-and-changelog:
name: Bump Version and Build Changelog
needs: [ build, upload-release-artifacts ]
Expand Down
31 changes: 23 additions & 8 deletions .github/workflows/test-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
paths: ['**']

# Cancel previous jobs if PR gets another push
# PR 收到新提交时取消上一轮任务。
concurrency:
group: PR-test-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -22,8 +22,8 @@ jobs:
with:
filters: |
code:
- 'src/**'
- '*.gradle'
- '**/src/**'
- '**/*.gradle'
- 'gradle.properties'
- 'gradlew*'
- 'gradle/**'
Expand All @@ -32,11 +32,26 @@ jobs:
uses: ./.github/actions/build_setup
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run GameTests
- name: Run Fabric server tests
if: steps.filter.outputs.code == 'true'
id: fabric
continue-on-error: true
run: ./gradlew :loader:fabric:runGameTestServer
- name: Run Forge server tests
if: steps.filter.outputs.code == 'true'
id: forge
continue-on-error: true
run: ./gradlew :loader:forge:runTestGameTestServer
- name: Run NeoForge GameTests
if: steps.filter.outputs.code == 'true'
id: gametest
continue-on-error: true
run: ./gradlew runGameTestServer
run: ./gradlew :loader:neoforge:runGameTestServer
- name: Run JVM tests
if: steps.filter.outputs.code == 'true'
id: jvm
continue-on-error: true
run: ./gradlew :tests:test --rerun
- name: Update “Tests Passed” / “Tests Failed” labels
if: steps.filter.outputs.code == 'true' && github.event.pull_request.head.repo.full_name == github.repository
uses: actions/github-script@v7
Expand All @@ -45,7 +60,7 @@ jobs:
const [add, remove] = {
success: ['Tests: Passed','Tests: Failed'],
failure: ['Tests: Failed','Tests: Passed']
}['${{ steps.gametest.outcome }}'];
}['${{ contains(steps.*.outcome, 'failure') && 'failure' || 'success' }}'];

const { owner, repo } = context.repo;
const issue_number = context.payload.pull_request.number;
Expand All @@ -58,5 +73,5 @@ jobs:
.removeLabel({ owner, repo, issue_number, name: remove })
.catch(() => {});
- name: Fail on GameTest failures
if: steps.filter.outputs.code == 'true' && steps.gametest.outcome == 'failure'
run: exit 1
if: steps.filter.outputs.code == 'true' && contains(steps.*.outcome, 'failure')
run: exit 1
4 changes: 2 additions & 2 deletions .github/workflows/update-gradle-cache.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Updates the Gradle Cache when necessary
# 按需更新 Gradle 缓存。
name: Update Gradle Cache

on:
push:
branches: ['1.21']
paths: ['gradle/**', '**/*.gradle', 'gradle.properties', 'gradlew*', 'src/main/resources/META-INF/accesstransformer.cfg']
paths: ['gradle/**', '**/*.gradle', 'gradle.properties', 'gradlew*']
workflow_dispatch:

concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ classes/
.settings
*.launch
.architectury-transformer/debug.log
src/generated/resources/.cache/
**/src/generated/resources/.cache/

*.patch
*.DS_Store
4 changes: 2 additions & 2 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# All other changes require the primary team
# 其他路径由主开发团队审查。
* @ExtremelyFrozen/devs

# Specific files requiring admin approval
# 以下文件由管理员团队审查。
CODEOWNERS @ExtremelyFrozen/admin
LICENSE @ExtremelyFrozen/admin
/README.md @ExtremelyFrozen/admin
Loading
Loading