mirror of
https://github.com/TeamMidnightDust/PictureSignTheora.git
synced 2025-12-16 08:05:09 +01:00
PictureSign: Theora Addon
Big thanks to @unascribed (https://github.com/TeamMidnightDust/PictureSign/pull/23)
This commit is contained in:
63
fabric/build.gradle
Normal file
63
fabric/build.gradle
Normal file
@@ -0,0 +1,63 @@
|
||||
plugins {
|
||||
id 'com.github.johnrengelman.shadow'
|
||||
//id "me.shedaniel.unified-publishing"
|
||||
}
|
||||
|
||||
architectury {
|
||||
platformSetupLoomIde()
|
||||
fabric()
|
||||
}
|
||||
|
||||
loom {
|
||||
}
|
||||
|
||||
configurations {
|
||||
common
|
||||
shadowCommon // Don't use shadow from the shadow plugin since it *excludes* files.
|
||||
compileClasspath.extendsFrom common
|
||||
runtimeClasspath.extendsFrom common
|
||||
developmentFabric.extendsFrom common
|
||||
archivesBaseName = rootProject.archives_base_name + "-fabric"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
|
||||
modApi "net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_api_version}"
|
||||
modImplementation include ("maven.modrinth:midnightlib:${rootProject.midnightlib_version}-fabric")
|
||||
modImplementation ("maven.modrinth:picturesign:${rootProject.picturesign_version}-fabric")
|
||||
|
||||
common(project(path: ":common", configuration: "namedElements")) { transitive false }
|
||||
shadowCommon(project(path: ":common", configuration: "transformProductionFabric")) { transitive false }
|
||||
}
|
||||
|
||||
processResources {
|
||||
inputs.property "version", project.version
|
||||
|
||||
filesMatching("fabric.mod.json") {
|
||||
expand "version": project.version
|
||||
}
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
exclude "architectury.common.json"
|
||||
|
||||
configurations = [project.configurations.shadowCommon]
|
||||
archiveClassifier = "dev-shadow"
|
||||
}
|
||||
|
||||
remapJar {
|
||||
input.set shadowJar.archiveFile
|
||||
dependsOn shadowJar
|
||||
}
|
||||
|
||||
sourcesJar {
|
||||
def commonSources = project(":common").sourcesJar
|
||||
dependsOn commonSources
|
||||
from commonSources.archiveFile.map { zipTree(it) }
|
||||
}
|
||||
|
||||
components.java {
|
||||
withVariantsFromConfiguration(project.configurations.shadowRuntimeElements) {
|
||||
skip()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package eu.midnightdust.picturesign_theora.fabric;
|
||||
|
||||
import eu.midnightdust.picturesign_theora.PictureSignTheoraClient;
|
||||
import net.fabricmc.api.ClientModInitializer;
|
||||
|
||||
public class PictureSignTheoraClientFabric implements ClientModInitializer {
|
||||
@Override
|
||||
public void onInitializeClient() {
|
||||
PictureSignTheoraClient.init();
|
||||
}
|
||||
}
|
||||
34
fabric/src/main/resources/fabric.mod.json
Executable file
34
fabric/src/main/resources/fabric.mod.json
Executable file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "picturesign-theora",
|
||||
"version": "${version}",
|
||||
|
||||
"name": "PictureSign: Theora",
|
||||
"description": "Adds support for Theora, Vorbis and OGG to PictureSign",
|
||||
"authors": [
|
||||
"unascribed",
|
||||
"Motschen"
|
||||
],
|
||||
"contact": {
|
||||
"homepage": "https://www.midnightdust.eu/",
|
||||
"sources": "https://github.com/TeamMidnightDust/PictureSignTheora",
|
||||
"issues": "https://github.com/TeamMidnightDust/PictureSignTheora/issues"
|
||||
},
|
||||
|
||||
"license": "MIT",
|
||||
"icon": "assets/picturesign/icon.png",
|
||||
|
||||
"environment": "client",
|
||||
"entrypoints": {
|
||||
"client": [
|
||||
"eu.midnightdust.picturesign_theora.fabric.PictureSignTheoraClientFabric"
|
||||
]
|
||||
},
|
||||
|
||||
"depends": {
|
||||
"picturesign": "*"
|
||||
},
|
||||
"mixins": [
|
||||
"picturesign-theora.mixins.json"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user