Skip to content

Commit cb2df89

Browse files
committed
fix: Maybe setting it directly from cli?
1 parent 5d42942 commit cb2df89

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262

6363
- name: Build with Gradle
6464
run: |
65-
./gradlew build -PmcVer="${{ matrix.mc }}" -PloaderName="${{ matrix.loader }}"
65+
./gradlew build -PmcVer="${{ matrix.mc }}" -Ploom.platform="${{ matrix.loader }}"
6666
6767
- name: Archive build results
6868
run: tar -I zstd -cf build.tar.zst versions/*/build/libs

build.gradle.kts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
id("com.gradleup.shadow") apply false
77
}
88

9-
val loaderName = project.properties["loaderName"] as? String ?: ""
9+
val loaderName = project.properties["loom.platform"] as? String ?: ""
1010
val isForge = loaderName.endsWith("forge")
1111
val isNeo = loaderName.endsWith("neoforge")
1212
val isFabric = loaderName.endsWith("fabric")
@@ -113,8 +113,6 @@ subprojects {
113113
apply(plugin = "dev.architectury.loom")
114114
}
115115

116-
extra.set("loom.platform", loaderName)
117-
118116
val manifoldVersion = project.properties["manifold_version"] as? String ?: ""
119117

120118
val shade: Configuration by configurations.creating {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ port_lib_version_1_18_2=1.2.869-beta+1.18.2
2828

2929
# Default MC version and loader name for IDEs, will be overwritten by gradle build argument -PmcVer or -PloaderName
3030
mcVer=1.21.3
31-
loaderName=fabric
31+
loom.platform=fabric

0 commit comments

Comments
 (0)