diff --git a/.architectury-transformer/.fuse_hidden00003cb50000001c b/.architectury-transformer/.fuse_hidden00003cb50000001c
new file mode 100644
index 00000000..adee5038
--- /dev/null
+++ b/.architectury-transformer/.fuse_hidden00003cb50000001c
@@ -0,0 +1,2 @@
+[Architectury Transformer DEBUG] Closed File Systems for /media/crystalneko/00053615000A874B/java/toNeko/common/build/libs/toneko-common-1.2.0.jar
+[Architectury Transformer DEBUG] Closed File Systems for /media/crystalneko/00053615000A874B/java/toNeko/common/build/libs/toneko-common-1.2.0.jar
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 1da9e7d3..8cdb6df0 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -33,17 +33,14 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
- - name: Run DataGenera
- run: ./gradlew runDatagen
-
- name: Build Mod
- run: ./gradlew build
+ run: ./build.sh
- name: Upload JAR artifacts
uses: actions/upload-artifact@v4
with:
name: build results
- path: ./build/libs/ # or path/to/artifact
+ path: ./result/ # or path/to/artifact
# NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html).
# If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version.
diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml
index 4b5604be..24204ff0 100644
--- a/.github/workflows/releases.yml
+++ b/.github/workflows/releases.yml
@@ -21,11 +21,9 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
- - name: Run DataGenera
- run: ./gradlew runDatagen
+ - name: Build Mod
+ run: ./build.sh
- - name: Build
- run: ./gradlew build
- name: Upload Release Assets
uses: softprops/action-gh-release@v2
@@ -35,5 +33,5 @@ jobs:
name: ${{ github.event.release.tag_name }} 更新
body: 发布 ${{ github.event.release.tag_name }}
files: |
- build/libs/*
+ result/*
generate_notes: true
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 547fdd25..f00539d9 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -7,14 +7,7 @@
-
-
-
-
-
-
-
-
+
@@ -39,11 +32,11 @@
-
+
-
+
@@ -66,7 +59,7 @@
@@ -79,7 +72,7 @@
}
{
"selectedUrlAndAccountId": {
- "url": "git@github.com:CSneko/toNeko.git",
+ "url": "https://github.com/CSneko/toNeko.git",
"accountId": "c85b6ef7-ef34-430b-85f7-0b45d6c0367e"
}
}
@@ -106,50 +99,41 @@
- {
+ "keyToString": {
+ "ASKED_ADD_EXTERNAL_FILES": "true",
+ "Gradle.toNeko Client.executor": "Debug",
+ "Gradle.toNeko Datagen.executor": "Run",
+ "Gradle.toNeko Server.executor": "Run",
+ "Gradle.toNeko [clean].executor": "Run",
+ "Gradle.toNeko [dependencies].executor": "Run",
+ "Gradle.toNeko [javadoc].executor": "Run",
+ "Gradle.toNeko build.executor": "Run",
+ "Gradle.toNeko datagen.executor": "Run",
+ "Gradle.toNekoFabric build.executor": "Run",
+ "Gradle.加载 Gradle 依赖项.executor": "Run",
+ "Gradle.构建 toNeko.executor": "Run",
+ "RunOnceActivity.OpenProjectViewOnStart": "true",
+ "RunOnceActivity.ShowReadmeOnStart": "true",
+ "git-widget-placeholder": "main",
+ "jdk.selected.com.intellij.ui.dsl.builder.impl.RowImpl.sdk": "21",
+ "kotlin-language-version-configured": "true",
+ "last_opened_file_path": "/media/crystalneko/00053615000A874B/java/toNeko1206",
+ "project.structure.last.edited": "库",
+ "project.structure.proportion": "0.0",
+ "project.structure.side.proportion": "0.0",
+ "settings.editor.selected.configurable": "preferences.pluginManager",
+ "应用程序.Data Generation.executor": "Run"
},
- "keyToStringList": {
- "jdk.preference.com.intellij.ui.dsl.builder.impl.RowImpl.sdk": [
- "17=/usr/lib/jvm/java-1.17.0-openjdk-amd64",
- "21=/usr/lib/jvm/java-21-openjdk-amd64"
+ "keyToStringList": {
+ "jdk.preference.com.intellij.ui.dsl.builder.impl.RowImpl.sdk": [
+ "17=/usr/lib/jvm/java-1.17.0-openjdk-amd64",
+ "21=/usr/lib/jvm/java-21-openjdk-amd64"
]
}
-}]]>
+}
-
@@ -172,7 +156,6 @@
-
@@ -293,10 +276,9 @@
-
-
-
-
+
+
+
@@ -307,7 +289,38 @@
1696578879658
-
+
+
+
+ 1720159774390
+
+
+
+ 1720159774391
+
+
+
+ 1720168963151
+
+
+
+ 1720168963152
+
+
+
+ 1720169012035
+
+
+
+ 1720169012035
+
+
+
+ 1720175011497
+
+
+
+ 1720175011498
@@ -669,44 +682,9 @@
1722745368009
-
-
- 1723182098818
-
-
-
- 1723182098818
-
-
-
- 1723192361388
-
-
-
- 1723192361388
-
-
-
- 1723213577575
-
-
-
- 1723213577576
-
-
-
- 1723264743219
-
-
-
- 1723264743219
-
-
+
-
-
-
+
+
@@ -743,8 +723,6 @@
-
-
-
+
\ No newline at end of file
diff --git a/build.sh b/build.sh
new file mode 100644
index 00000000..e6064046
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,9 @@
+./gradlew runDatagen & # 将命令放入后台运行
+pid=$! # 获取该命令的PID
+sleep 60
+kill -9 $pid # 60s后强制kill
+
+./gradlew build
+mkdir result
+cp -r fabric/build/libs/* result
+cp -r neoforge/build/libs/* result
\ No newline at end of file
diff --git a/fabric/build.gradle b/fabric/build.gradle
index 50b4557d..807c6599 100644
--- a/fabric/build.gradle
+++ b/fabric/build.gradle
@@ -52,3 +52,7 @@ shadowJar {
remapJar {
input.set shadowJar.archiveFile
}
+
+fabricApi {
+ configureDataGeneration()
+}
\ No newline at end of file
diff --git a/fabric/src/main/resources/fabric.mod.json b/fabric/src/main/resources/fabric.mod.json
index c29d0561..233fe9fe 100644
--- a/fabric/src/main/resources/fabric.mod.json
+++ b/fabric/src/main/resources/fabric.mod.json
@@ -42,7 +42,8 @@
},
"suggests": {
"luckperms": "*",
- "geckolib": "*"
+ "geckolib": "*",
+ "trinkets": "*"
},
"breaks": {
"optifabric": "*"