Skip to content
This repository was archived by the owner on Mar 22, 2026. It is now read-only.

Commit 0e58a21

Browse files
committed
添加 assimp 扩展的 modrinth 上传脚本
1 parent f1bf730 commit 0e58a21

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed

blazerod/model/model-assimp/BUILD.bazel

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
load("@rules_kotlin//kotlin:jvm.bzl", "kt_jvm_library")
2-
load("//:properties.bzl", "blazerod_version")
2+
load("//:properties.bzl", "blazerod_version", "game_version", "fabric_language_kotlin_version_modrinth")
33
load("//rule:fabric_mod_json_jar.bzl", "fabric_mod_json_jar")
44
load("//rule:merge_jij.bzl", "merge_jij")
5+
load("@//rule:upload_modrinth.bzl", "modrinth_dependency", "upload_modrinth")
56

67
fabric_mod_json_jar(
78
name = "fabric_mod_json",
@@ -42,7 +43,6 @@ kt_jvm_library(
4243
],
4344
)
4445

45-
4646
merge_jij(
4747
name = "model-assimp-merged",
4848
input = ":model-assimp",
@@ -58,4 +58,34 @@ merge_jij(
5858
"@maven//:org_lwjgl_lwjgl_assimp_natives_macos": "org_lwjgl_lwjgl_assimp_natives_macos:3.3.3",
5959
"@maven//:org_lwjgl_lwjgl_assimp_natives_macos_arm64": "org_lwjgl_lwjgl_assimp_natives_macos_arm64:3.3.3",
6060
},
61+
)
62+
63+
modrinth_dependency(
64+
name = "fabric_language_kotlin",
65+
project_id = "Ha28R6CL",
66+
version_id = fabric_language_kotlin_version_modrinth,
67+
dependency_type = "required",
68+
)
69+
70+
modrinth_dependency(
71+
name = "armorstand",
72+
project_id = "tLPuDSOw",
73+
dependency_type = "required",
74+
)
75+
76+
upload_modrinth(
77+
name = "upload_modrinth",
78+
token_secret_id = "modrinth_token",
79+
project_id = "xeMk2Ovz",
80+
version_name = blazerod_version,
81+
version_id = blazerod_version,
82+
version_type = "alpha",
83+
game_versions = [game_version],
84+
loaders = ["fabric"],
85+
deps = [
86+
":fabric_language_kotlin",
87+
":armorstand",
88+
],
89+
file = ":model-assimp-merged",
90+
file_name = "blazerod-model-assimp-%s.jar" % blazerod_version,
6191
)

0 commit comments

Comments
 (0)