PictureSign: Theora Addon

Big thanks to @unascribed (https://github.com/TeamMidnightDust/PictureSign/pull/23)
This commit is contained in:
Martin Prokoph
2024-07-07 20:11:57 +02:00
parent caf1c99392
commit 732e3420fb
86 changed files with 17041 additions and 0 deletions

63
fabric/build.gradle Normal file
View 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()
}
}

View File

@@ -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();
}
}

View 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"
]
}