Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ hs_err_pid*
# Icon must end with two \r
Icon
!common/src/main/resources/assets/devices/textures/app/icon

!addon/gitweb-builder/common/src/resources/assets/gitwebbuilder/textures/app/icon

!updater/updater.jar
# Thumbnails
Expand Down
14 changes: 14 additions & 0 deletions addon/addon-common.build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
architectury {
common(rootProject.platforms.split(","))
}

loom {

}

dependencies {
// We depend on fabric loader here to use the fabric @Environment annotations
// Do NOT use other classes from fabric loader
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
implementation project(path: ":common", configuration: "namedElements")
}
51 changes: 51 additions & 0 deletions addon/addon-fabric.build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
plugins {
id "com.github.johnrengelman.shadow" version "7.1.2"
}

loom {
mixin { useLegacyMixinAp = true }
accessWidenerPath = project(":common").loom.accessWidenerPath
}

architectury {
platformSetupLoomIde()
fabric()
}

configurations {
common
shadowCommon
compileClasspath.extendsFrom common
runtimeClasspath.extendsFrom common
developmentFabric.extendsFrom common
}

String strippedName = project.getName().substring(0, project.getName().length() - "-fabric".length())

archivesBaseName = strippedName
dependencies {
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"

implementation project(path: ":fabric", configuration: "namedElements")
common(project(path: ":common", configuration: "transformProductionFabric")) { transitive false }

common(project(path: ":$strippedName-common", configuration: "namedElements")) { transitive false }
shadowCommon(project(path: ":$strippedName-common", configuration: "transformProductionFabric")) { transitive false }
}

shadowJar {
configurations = [project.configurations.shadowCommon]
archiveClassifier = "dev-shadow"
}

remapJar {
injectAccessWidener = true
//noinspection GrDeprecatedAPIUsage
input.set shadowJar.archiveFile
dependsOn shadowJar
archiveClassifier = null
}

jar {
archiveClassifier = "dev"
}
Empty file added addon/addon-forge.build.gradle
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package mastef_chief.gitwebbuilder;

import com.ultreon.devices.api.ApplicationManager;
import com.ultreon.devices.api.task.TaskManager;
import dev.architectury.core.item.ArchitecturyRecordItem;
import dev.architectury.registry.client.level.entity.EntityModelLayerRegistry;
import mastef_chief.gitwebbuilder.app.GWBApp;
import mastef_chief.gitwebbuilder.app.models.GWBLogoModel;
import mastef_chief.gitwebbuilder.app.tasks.TaskNotificationCopiedCode;
import mastef_chief.gitwebbuilder.app.tasks.TaskNotificationCopiedLink;
import net.minecraft.resources.ResourceLocation;

public class GitwebBuilder {

public static GitwebBuilder INSTANCE;

public GitwebBuilder() {
INSTANCE = this;
TaskManager.registerTask(TaskNotificationCopiedCode::new);
TaskManager.registerTask(TaskNotificationCopiedLink::new);

EntityModelLayerRegistry.register(GWBLogoModel.LAYER_LOCATION, GWBLogoModel::createTexturedModelData);
}

public static void registerApplications() {
ApplicationManager.registerApplication(new ResourceLocation(Reference.MOD_ID, "gitwebbuilder_app"), () -> GWBApp::new, false);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package mastef_chief.gitwebbuilder;

public class Reference {

public static final String MOD_ID = "gitwebbuilder";
public static final String NAME = "GitWeb Builder";
public static final String VERSION = "1.0";
public static final String ACCEPTED_VERSIONS = "[1.12.2]";
public static final String DEPENDS = "required-after:cdm@[0.3.0,)";

public static final String CLIENT_PROXY_CLASS = "mastef_chief.gitwebbuilder.proxy.ClientProxy";
public static final String SERVER_PROXY_CLASS = "mastef_chief.gitwebbuilder.proxy.ServerProxy";

}
Loading